# $Id: PKGBUILD 4237 2008-07-05 19:17:35Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=zlib
pkgver=1.2.3.3
pkgrel=14
pkgdesc="A compression/decompression Library"
arch=('i686' 'x86_64')
license=('custom:zlib')
url="http://www.gzip.org/zlib"
groups=('base')
depends=('glibc')
source=("ftp://ftp.archlinux.org/other/zlib/zlib-${pkgver}.tar.gz")
md5sums=('c444cf020e5f0e3323b11f5a2d8af8d3')

build() {
	cd ${srcdir}/zlib-$pkgver

	./configure --prefix=/usr --shared
	make || return 1
	make install prefix=${pkgdir}/usr || return 1

	grep -A 24 '^  Copyright' zlib.h > license.txt
	install -D license.txt ${pkgdir}/usr/share/licenses/zlib/license.txt
}