mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 02:02:08 +01:00
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
|
pkgname=talloc
|
|
pkgver=2.1.14
|
|
pkgrel=0
|
|
pkgdesc="Memory pool management library"
|
|
url="https://talloc.samba.org"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later"
|
|
replaces="samba-common"
|
|
makedepends="docbook-xsl libxslt python2-dev python3-dev"
|
|
subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3 $pkgname-doc"
|
|
source="https://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz
|
|
always-libs.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
--bundled-libraries=NONE \
|
|
--builtin-libraries=replace \
|
|
--disable-rpath \
|
|
--disable-rpath-install \
|
|
--without-gettext \
|
|
--extra-python=/usr/bin/python3
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
_py2() {
|
|
pkgdesc="Python 2 binding for libtalloc"
|
|
replaces="py-talloc" # for backward compatibility
|
|
provides="py-talloc=$pkgver-r$pkgrel" # for backward compatibility
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libpytalloc-util.so.* \
|
|
"$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
_py3() {
|
|
pkgdesc="Python 3 binding for libtalloc"
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libpytalloc-util.cpython* \
|
|
"$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="1fcc70bf283a4d9fb61faf1c57f80a9c158efbe996452740db9755e879ad72ee7bff6f6c9bed358e085c5c7f97c78800bb903161143af2202952b702141cc130 talloc-2.1.14.tar.gz
|
|
fa818d6291f6291d193b475af993de4fd34e6133ccacb55203f5c96973c51b2e932523f5f2a8cd38a4959e80d8378841b3b5efd5411b7828a240102b492c16e7 always-libs.patch"
|