2016-02-25 21:31:59 +08:00
|
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/zlib
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
pkgname=zlib
|
2013-07-26 03:19:58 +08:00
|
|
|
pkgver=1.2.8
|
2016-02-25 21:31:59 +08:00
|
|
|
pkgrel=2
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
|
2016-02-25 21:31:59 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('custom')
|
|
|
|
url="http://www.zlib.net/"
|
|
|
|
depends=('glibc')
|
2016-02-25 21:31:59 +08:00
|
|
|
options=('staticlibs') # needed by binutils testsuite
|
2012-06-03 06:07:19 +08:00
|
|
|
source=("http://zlib.net/current/zlib-${pkgver}.tar.gz")
|
2013-07-26 03:19:58 +08:00
|
|
|
md5sums=('44d667c142d7cda120332623eab69f40')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
2010-05-16 23:08:55 +08:00
|
|
|
./configure --prefix=/usr
|
2011-04-17 06:29:38 +08:00
|
|
|
make
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
grep -A 24 '^ Copyright' zlib.h > LICENSE
|
|
|
|
}
|
|
|
|
|
2012-06-03 06:07:19 +08:00
|
|
|
check() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
package() {
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
2011-04-17 06:29:38 +08:00
|
|
|
make install DESTDIR=${pkgdir}
|
2010-03-13 23:25:19 +08:00
|
|
|
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE
|
2012-06-03 06:07:19 +08:00
|
|
|
}
|