2011-01-14 23:54:01 +08:00
|
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2013-08-05 13:20:48 +08:00
|
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
2011-01-14 23:54:01 +08:00
|
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
_pkgbasename=zlib
|
|
|
|
pkgname=lib32-$_pkgbasename
|
2012-07-30 01:18:48 +08:00
|
|
|
pkgver=1.2.7
|
2012-12-18 03:38:52 +08:00
|
|
|
pkgrel=2
|
2011-01-14 23:54:01 +08:00
|
|
|
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP (32-bit)'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('custom')
|
|
|
|
url="http://www.zlib.net/"
|
2012-10-31 22:53:16 +08:00
|
|
|
depends=('lib32-glibc' $_pkgbasename=$pkgver)
|
2011-01-14 23:54:01 +08:00
|
|
|
makedepends=(gcc-multilib)
|
|
|
|
options=('!makeflags')
|
2012-07-30 01:18:48 +08:00
|
|
|
source=("http://zlib.net/${_pkgbasename}-${pkgver}.tar.gz")
|
|
|
|
md5sums=('60df6a37c56e7c1366cca812414f7b85')
|
2011-01-14 23:54:01 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export CC="gcc -m32"
|
|
|
|
export CXX="g++ -m32"
|
|
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libdir=/usr/lib32
|
|
|
|
make
|
2012-07-30 01:18:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
make test
|
2011-01-14 23:54:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
make install DESTDIR=${pkgdir}
|
|
|
|
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
}
|