51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
# Template file for 'tdb'
|
|
pkgname=tdb
|
|
version=1.4.8
|
|
revision=1
|
|
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=8434c9c857d13ce3fa8466f75601f25c3693676b36919f159e0ad6121baf5ce8
|
|
|
|
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.*"
|
|
}
|
|
}
|