void-packages/srcpkgs/talloc/template
2020-01-06 01:04:07 +01:00

32 lines
939 B
Bash

# Template file for 'talloc'
pkgname=talloc
version=2.3.1
revision=1
build_style=configure
hostmakedepends="pkg-config python3 libxslt docbook-xsl which"
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=ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77
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}
}
talloc-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/libtalloc.so
vmove usr/share/man/man3
}
}