mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
44 lines
1.0 KiB
Bash
44 lines
1.0 KiB
Bash
# 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"
|
|
}
|