lib32/lib32-zlib/PKGBUILD
2013-08-05 07:21:31 +02:00

44 lines
1.1 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=zlib
pkgname=lib32-$_pkgbasename
pkgver=1.2.7
pkgrel=2
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/"
depends=('lib32-glibc' $_pkgbasename=$pkgver)
makedepends=(gcc-multilib)
options=('!makeflags')
source=("http://zlib.net/${_pkgbasename}-${pkgver}.tar.gz")
md5sums=('60df6a37c56e7c1366cca812414f7b85')
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
}
check() {
cd ${srcdir}/zlib-$pkgver
make test
}
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"
}