void-packages/srcpkgs/tdb/template
2017-09-11 15:00:31 +02:00

37 lines
1 KiB
Bash

# Template build file for 'tdb'.
pkgname=tdb
version=1.3.14
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config python libxslt docbook-xsl"
short_desc="A Trivial Database similar to GDBM but allows simultaneous commits"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://tdb.samba.org/"
distfiles="http://samba.org/ftp/tdb/tdb-$version.tar.gz"
checksum=3a7d4bb79229460df530c7e1c7067ba9fb9d370aa61fff537fdc2bdf918acbe9
do_configure() {
if [ "$CROSS_BUILD" ]; then
cp ${FILESDIR}/cross-32bit.answers .
sed -i "s,@@XBPS_TARGET_MACHINE@@,$XBPS_TARGET_MACHINE,g" cross-32bit.answers
_args="--cross-compile --hostcc=cc --cross-answers=cross-32bit.answers"
fi
./configure --prefix=/usr --disable-python ${_args}
}
tdb-devel_package() {
depends="libtdb-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libtdb_package() {
short_desc="Trivial Database - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}