mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
Sync
This commit is contained in:
parent
f349fc3990
commit
4f83c730ba
43
lib32-talloc/PKGBUILD
Normal file
43
lib32-talloc/PKGBUILD
Normal file
@ -0,0 +1,43 @@
|
||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||
|
||||
_pkgbasename=talloc
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=2.0.8
|
||||
pkgrel=1
|
||||
pkgdesc="talloc is a hierarchical pool based memory allocator with destructors (32-bit)"
|
||||
arch=(x86_64)
|
||||
license=('GPL3')
|
||||
url="http://talloc.samba.org/"
|
||||
source=(http://samba.org/ftp/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
|
||||
depends=('lib32-glibc' $_pkgbasename)
|
||||
makedepends=(gcc-multilib)
|
||||
md5sums=('7857200b58a8617ca18fe2c91296cd93')
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
|
||||
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
||||
|
||||
sed -i -e 's#python#python2#g' buildtools/bin/waf
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-python \
|
||||
--sysconfdir=/etc/samba \
|
||||
--localstatedir=/var \
|
||||
--enable-talloc-compat1 \
|
||||
--libdir=/usr/lib32
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/talloc-${pkgver}
|
||||
|
||||
make DESTDIR=$pkgdir/ install
|
||||
|
||||
rm -rf "$pkgdir/usr/include"
|
||||
rm -rf "$pkgdir/usr/share"
|
||||
}
|
Loading…
Reference in New Issue
Block a user