void-packages/srcpkgs/bk/template
Christian Neukirchen 76de4dcf54 bk: update to 7.3ce.
2016-07-14 19:21:43 +02:00

39 lines
1.2 KiB
Bash

# Template file for 'bitkeeper'
pkgname=bk
version=7.3ce
revision=1
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="Christian Neukirchen <chneukirchen@gmail.com>"
license="Apache-2.0"
homepage="https://www.bitkeeper.org/"
distfiles="https://www.bitkeeper.org/downloads/${version}/${pkgname}-${version}.tar.gz"
checksum=13249636f4b5b39f1d64b9f6bf682ee2dce53db17cdd8aa4cd9019e65252cabb
# Needs reworking of the build system.
nocross=yes
post_extract() {
# For musl:
sed -i '1i#define __DEFINED_FILE' 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
}