mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 13:47:14 +08:00
33 lines
894 B
Bash
33 lines
894 B
Bash
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/talloc/
|
|
|
|
pkgname=talloc
|
|
pkgver=2.0.8
|
|
pkgrel=1
|
|
pkgdesc="A hierarchical pool based memory allocator with destructors"
|
|
arch=(x86_64)
|
|
license=('GPL3')
|
|
url="http://tdb.samba.org/"
|
|
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
|
depends=('glibc')
|
|
makedepends=('python2' 'docbook-xsl')
|
|
optdepends=('python2: for python bindings')
|
|
md5sums=('7857200b58a8617ca18fe2c91296cd93')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed -i -e 's#python#python2#g' buildtools/bin/waf
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc/samba \
|
|
--localstatedir=/var \
|
|
--enable-talloc-compat1
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=$pkgdir/ install
|
|
# fix permission
|
|
#chmod 644 $pkgdir/usr/lib/libtalloc.a
|
|
}
|