51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
# Template file for 'tdb'
|
|
pkgname=tdb
|
|
version=1.4.9
|
|
revision=2
|
|
build_style=waf3
|
|
build_helper="qemu"
|
|
configure_script="buildtools/bin/waf"
|
|
configure_args="--prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
|
|
--localstatedir=/var --disable-rpath --disable-rpath-install
|
|
--builtin-libraries=replace --bundled-libraries=NONE --without-gettext"
|
|
hostmakedepends="pkg-config docbook2x"
|
|
makedepends="python3-devel libxslt gettext-devel"
|
|
short_desc="Trivial Database, similar to GDBM but allows simultaneous commits"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://tdb.samba.org/"
|
|
distfiles="https://download.samba.org/pub/tdb/tdb-${version}.tar.gz"
|
|
checksum=0ac226073e3a2db8648da7af744cb95f50766a52feeb001d558b2b321b74a765
|
|
|
|
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
|
|
export PYTHONHASHSEED=1
|
|
|
|
do_check() {
|
|
${configure_script} test ${makejobs}
|
|
}
|
|
|
|
tdb-devel_package() {
|
|
depends="libtdb-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
tdb-python3_package() {
|
|
short_desc+=" - Python3 bindings"
|
|
depends="python3"
|
|
pkg_install() {
|
|
vmove ${py3_lib}
|
|
}
|
|
}
|
|
|
|
libtdb_package() {
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|