void-packages/srcpkgs/bk/template
2017-11-03 18:01:45 -02:00

42 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.2
revision=3
hostmakedepends="gperf groff perl bison pkg-config"
makedepends="libXft-devel libtomcrypt-devel libtommath-devel pcre-devel lz4-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=833bf095a1f9c2be435fddbb3ffe10dadfad1853127b97892f1a81c884d4fe1d
# Needs reworking of the build system.
nocross=yes
post_extract() {
# For musl:
sed -i '1i#define __DEFINED_FILE' src/libc/stdio_remap.h
# For glibc:
sed -i '1i#define __FILE_defined' src/libc/stdio_remap.h
sed -i 's/__linux__/__GLIBC__/' 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
}