void-packages/srcpkgs/bk/template
2019-02-18 10:01:35 +01:00

44 lines
1.3 KiB
Bash

# Template file for 'bk'
pkgname=bk
reverts="7.3ce.1_1 7.3ce.1_2 7.3ce_1 7.3ce_2"
version=7.3.3
revision=1
hostmakedepends="gperf groff perl bison pkg-config"
makedepends="libXft-devel libtomcrypt-devel libtommath-devel pcre-devel liblz4-devel"
# bundles: tcl tk
short_desc="BitKeeper Distributed Source Control System"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
homepage="http://www.bitkeeper.org/"
distfiles="http://www.bitkeeper.org/downloads/${version}/${pkgname}-${version}.src.tar.gz"
checksum=da2b8ef3044b9fc9d96cbd5990e5a9e989f5856f9b394013affc1e25014a2928
# Needs reworking of the build system.
nocross=yes
post_extract() {
# For musl:
vsed -e '1i#define __DEFINED_FILE' -i src/libc/stdio_remap.h
# For glibc:
vsed -e '1i#define __FILE_defined' -i src/libc/stdio_remap.h
vsed -e 's/__linux__/__GLIBC__/' -i src/libc/utils/stackdump.c
}
do_build() {
make ${makejobs} \
CC="$CC" CXX="$CXX" LD="$CC" RANLIB="$RANLIB" \
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" CFLAGS="$CFLAGS" \
LDFLAGS="$CFLAGS $LDFLAGS" Q=
}
do_install() {
# Upstream recommended site-wide location.
make install DESTDIR=${DESTDIR} BINDIR=/usr/libexec/bitkeeper
vmkdir usr/bin
ln -sf /usr/libexec/bitkeeper/bk ${DESTDIR}/usr/bin/bk
vlicense LICENSE
vlicense LICENSE.extras.md
vlicense NOTICE
}