core/talloc/PKGBUILD

46 lines
1.2 KiB
Bash
Raw Normal View History

2012-12-05 23:41:45 +08:00
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/talloc/
2010-03-14 23:48:48 +08:00
pkgname=talloc
pkgver=2.1.5
2010-03-14 23:48:48 +08:00
pkgrel=1
2012-12-05 23:41:45 +08:00
pkgdesc="A hierarchical pool based memory allocator with destructors"
arch=(x86_64)
2010-03-14 23:48:48 +08:00
license=('GPL3')
2015-09-21 06:36:45 +08:00
url="http://talloc.samba.org/"
2010-03-14 23:48:48 +08:00
depends=('glibc')
2012-12-05 23:41:45 +08:00
makedepends=('python2' 'docbook-xsl')
optdepends=('python2: for python bindings')
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.{gz,asc}
fix_test_path.patch)
sha1sums=('bdf3b3d8449e2c354f1ebc43d3e1058160eb4adb'
'SKIP'
'34132be289f9ce1c38c8b367def8d91ac7dbb706')
2015-09-21 06:36:45 +08:00
validpgpkeys=(9147A339719518EE9011BCB54793916113084025) # samba-bugs@samba.org
2010-03-14 23:48:48 +08:00
2015-09-21 06:36:45 +08:00
prepare() {
2012-12-05 23:41:45 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < ../fix_test_path.patch
2012-12-05 23:41:45 +08:00
sed -i -e 's#python#python2#g' buildtools/bin/waf
2015-09-21 06:36:45 +08:00
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2010-03-14 23:48:48 +08:00
./configure --prefix=/usr \
2015-09-21 06:36:45 +08:00
--sysconfdir=/etc/samba \
--localstatedir=/var \
--bundled-libraries=NONE \
--builtin-libraries=replace \
--enable-talloc-compat1
2012-12-05 23:41:45 +08:00
make
}
2015-09-21 06:36:45 +08:00
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
2012-12-05 23:41:45 +08:00
package() {
2015-09-21 06:36:45 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2010-03-14 23:48:48 +08:00
}