void-packages/srcpkgs/tdb/template

55 lines
1.2 KiB
Text
Raw Normal View History

2010-11-21 15:44:55 +00:00
# Template build file for 'tdb'.
pkgname=tdb
2012-12-04 17:09:54 +00:00
version=1.2.11
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config python libxslt docbook-xsl"
2010-11-21 15:44:55 +00:00
short_desc="Hierarchical pool based memory allocator with destructors"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-01-16 06:44:38 +00:00
license="GPL-3"
2012-10-23 20:58:36 +00:00
homepage="http://tdb.samba.org/"
distfiles="http://samba.org/ftp/tdb/tdb-$version.tar.gz"
2012-12-04 17:09:54 +00:00
checksum=f10eae6361b033131d2deebfcccbcaeb3d8006747005f5240d68e8b70632f6c2
2010-11-21 15:44:55 +00:00
long_desc="
This is a simple database API. It is modelled after the structure of GDBM.
TDB features, unlike GDBM, multiple writers support with appropriate locking
and transactions."
do_configure() {
if [ "$CROSS_BUILD" ]; then
cp ${FILESDIR}/cross-32bit.answers .
_args="--cross-compile --hostcc=cc --cross-answers=cross-32bit.answers"
fi
./configure --prefix=/usr --disable-python ${_args}
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
}
tdb-devel_package() {
depends="libtdb-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
libtdb_package() {
short_desc="Trivial Database - shared library"
pkg_install() {
vmove "usr/lib/*.so*"
}
}
tdb_package() {
pkg_install() {
vmove usr
}
}