2012-02-02 00:29:46 +00:00
|
|
|
# $Id: PKGBUILD 148443 2012-01-31 23:47:54Z pierre $
|
|
|
|
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
|
2011-01-15 04:12:15 +00:00
|
|
|
|
2012-02-02 00:29:46 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - added --shared to configure
|
2011-01-15 04:12:15 +00:00
|
|
|
|
|
|
|
pkgname=zlib
|
2013-05-02 12:10:51 +00:00
|
|
|
pkgver=1.2.8
|
2015-06-05 12:18:20 +00:00
|
|
|
pkgrel=4
|
2011-01-15 04:12:15 +00:00
|
|
|
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
|
2012-02-02 00:29:46 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2011-01-15 04:12:15 +00:00
|
|
|
license=('custom')
|
|
|
|
url="http://www.zlib.net/"
|
|
|
|
depends=('glibc')
|
2013-10-23 13:51:16 +00:00
|
|
|
options=('staticlibs') # needed by binutils testsuite
|
2012-02-02 00:29:46 +00:00
|
|
|
source=("http://zlib.net/current/zlib-${pkgver}.tar.gz")
|
2013-05-02 12:10:51 +00:00
|
|
|
md5sums=('44d667c142d7cda120332623eab69f40')
|
2011-01-15 04:12:15 +00:00
|
|
|
|
2013-10-23 13:51:16 +00:00
|
|
|
prepare() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
grep -A 24 '^ Copyright' zlib.h > LICENSE
|
|
|
|
}
|
|
|
|
|
2011-01-15 04:12:15 +00:00
|
|
|
build() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
./configure --prefix=/usr --shared
|
2012-02-02 00:29:46 +00:00
|
|
|
make
|
2011-01-15 04:12:15 +00:00
|
|
|
}
|
|
|
|
|
2012-02-02 00:29:46 +00:00
|
|
|
check() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
2011-01-15 04:12:15 +00:00
|
|
|
package() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
2012-02-02 00:29:46 +00:00
|
|
|
make install DESTDIR=${pkgdir}
|
2011-01-15 04:12:15 +00:00
|
|
|
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE
|
|
|
|
}
|