void-packages/srcpkgs/bk/template

43 lines
1.4 KiB
Bash
Raw Normal View History

2016-05-21 23:05:00 +02:00
# Template file for 'bitkeeper'
pkgname=bk
version=7.3ce.1
2016-11-22 01:01:04 +01:00
revision=2
wrksrc="bk-7.3.1ce"
2016-05-21 23:05:00 +02:00
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/"
distfiles="https://www.bitkeeper.org/downloads/${version}ce/${pkgname}-${version}ce.src.tar.gz"
# XXX call next version just "7.4"
2016-10-03 18:15:01 +02:00
distfiles="https://www.bitkeeper.org/downloads/7.3.1ce/${pkgname}-7.3.1ce.src.tar.gz"
checksum=8784fe01722ebac7d93854c25a3aa203ec2751d90d06b036003868f2d8e6d250
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
}