New package: bk-7.2.1ce

This commit is contained in:
Christian Neukirchen 2016-05-21 23:05:00 +02:00
parent ca4feb364a
commit d53d63a3b6
2 changed files with 38 additions and 0 deletions

37
srcpkgs/bk/template Normal file
View File

@ -0,0 +1,37 @@
# Template file for 'bitkeeper'
pkgname=bk
version=7.2.1ce
revision=1
build_wrksrc="src"
hostmakedepends="gperf groff perl bison pkg-config"
makedepends="libXft-devel"
# bundles: tcl tk pcre libtommath
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}.src.tar.gz"
checksum=f04f88064d67f170bf936cb547ecb9568d7e28a43094e555f2a649df25e76fcd
# Needs reworking of the build system.
nopie=yes
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="$LDFLAGS" Q=
}
do_install() {
# Upstream recommended site-wide location.
make install BINDIR=${DESTDIR}/usr/libexec/bitkeeper
vmkdir usr/bin
ln -sf /usr/libexec/bitkeeper/bk ${DESTDIR}/usr/bin/bk
}

1
srcpkgs/bk/update Normal file
View File

@ -0,0 +1 @@
site='https://www.bitkeeper.org/downloads/latest/'