52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'talloc'
|
|
pkgname=talloc
|
|
version=2.3.2
|
|
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 docbook2x"
|
|
makedepends="python3-devel libtirpc-devel libxslt gettext-devel"
|
|
short_desc="Hierarchical pool based memory allocator with destructors"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://talloc.samba.org/"
|
|
distfiles="http://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=27a03ef99e384d779124df755deb229cd1761f945eca6d200e8cfd9bf5297bd7
|
|
|
|
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
|
|
|
|
post_patch() {
|
|
# Avoid Python shlib extension noise in libpytallic-util.so
|
|
vsed -e "/env.pyext_PATTERN/s/dct\['SO'\]/'.so'/" \
|
|
-i third_party/waf/waflib/Tools/python.py
|
|
}
|
|
|
|
talloc-python3_package() {
|
|
short_desc+=" - Python3 bindings"
|
|
pkg_install() {
|
|
vmove ${py3_lib}
|
|
}
|
|
}
|
|
|
|
libpytalloc-util_package() {
|
|
short_desc+=" - Python3 utility library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpytalloc-util.so.*"
|
|
}
|
|
}
|
|
|
|
talloc-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}
|
|
libpytalloc-util>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|