PKGBUILDs/core/zlib/PKGBUILD

38 lines
841 B
Bash
Raw Normal View History

2012-02-02 00:29:46 +00:00
# $Id: PKGBUILD 148443 2012-01-31 23:47:54Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
2012-02-02 00:29:46 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added --shared to configure
2012-02-02 00:29:46 +00:00
plugrel=1
pkgname=zlib
2012-05-05 17:47:31 +00:00
pkgver=1.2.7
2012-02-02 00:29:46 +00:00
pkgrel=1
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')
license=('custom')
url="http://www.zlib.net/"
depends=('glibc')
2012-02-02 00:29:46 +00:00
source=("http://zlib.net/current/zlib-${pkgver}.tar.gz")
2012-05-05 17:47:31 +00:00
md5sums=('60df6a37c56e7c1366cca812414f7b85')
build() {
cd ${srcdir}/zlib-$pkgver
./configure --prefix=/usr --shared
2012-02-02 00:29:46 +00:00
make
grep -A 24 '^ Copyright' zlib.h > LICENSE
}
2012-02-02 00:29:46 +00:00
check() {
cd ${srcdir}/zlib-$pkgver
make test
}
package() {
cd ${srcdir}/zlib-$pkgver
2012-02-02 00:29:46 +00:00
make install DESTDIR=${pkgdir}
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/zlib/LICENSE
}