mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 22:14:37 +08:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/talloc/
|
|
|
|
pkgname=talloc
|
|
pkgver=2.1.3
|
|
pkgrel=1
|
|
pkgdesc="A hierarchical pool based memory allocator with destructors"
|
|
arch=(x86_64)
|
|
license=('GPL3')
|
|
url="http://talloc.samba.org/"
|
|
depends=('glibc')
|
|
makedepends=('python2' 'docbook-xsl')
|
|
optdepends=('python2: for python bindings')
|
|
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.{gz,asc})
|
|
sha1sums=('75f6a09a7199d0d952ebde6fc605dc0f2046b41c'
|
|
'SKIP')
|
|
validpgpkeys=(9147A339719518EE9011BCB54793916113084025) # samba-bugs@samba.org
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed -i -e 's#python#python2#g' buildtools/bin/waf
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc/samba \
|
|
--localstatedir=/var \
|
|
--bundled-libraries=NONE \
|
|
--builtin-libraries=replace \
|
|
--enable-talloc-compat1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|