void-packages/srcpkgs/bk/template

40 lines
1.2 KiB
Bash
Raw Normal View History

2016-05-21 23:05:00 +02:00
# Template file for 'bitkeeper'
pkgname=bk
2016-07-14 19:21:35 +02:00
version=7.3ce
2016-05-21 23:05:00 +02:00
revision=1
hostmakedepends="gperf groff perl bison pkg-config"
2016-07-14 19:21:35 +02:00
makedepends="libXft-devel libtomcrypt-devel libtommath-devel pcre-devel lz4-devel"
# bundles: tcl tk
2016-05-21 23:05:00 +02:00
short_desc="BitKeeper Distributed Source Control System"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="Apache-2.0"
homepage="https://www.bitkeeper.org/"
2016-07-14 19:21:35 +02:00
distfiles="https://www.bitkeeper.org/downloads/${version}/${pkgname}-${version}.tar.gz"
checksum=13249636f4b5b39f1d64b9f6bf682ee2dce53db17cdd8aa4cd9019e65252cabb
2016-05-21 23:05:00 +02:00
# 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" \
2016-07-14 19:21:35 +02:00
LDFLAGS="$CFLAGS $LDFLAGS" Q=
2016-05-21 23:05:00 +02:00
}
do_install() {
# Upstream recommended site-wide location.
2016-07-14 19:21:35 +02:00
make install DESTDIR=${DESTDIR} BINDIR=/usr/libexec/bitkeeper
2016-05-21 23:05:00 +02:00
vmkdir usr/bin
ln -sf /usr/libexec/bitkeeper/bk ${DESTDIR}/usr/bin/bk
2016-07-14 19:21:35 +02:00
vlicense LICENSE
vlicense LICENSE.extras.md
vlicense NOTICE
2016-05-21 23:05:00 +02:00
}