55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Template file for 'tdb'
|
|
pkgname=tdb
|
|
version=1.4.10
|
|
revision=1
|
|
build_style=waf3
|
|
build_helper="qemu"
|
|
configure_script="buildtools/bin/waf"
|
|
configure_args="--sysconfdir=/etc --localstatedir=/var
|
|
--disable-rpath --disable-rpath-install --without-gettext
|
|
--builtin-libraries=replace --bundled-libraries=NONE"
|
|
hostmakedepends="pkg-config docbook-xsl libxslt"
|
|
makedepends="python3-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=02338e33c16c21c9e29571cef523e76b2b708636254f6f30c6cf195d48c62daf
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = glibc ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
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.*"
|
|
}
|
|
}
|