PKGBUILDs/core/zlib/PKGBUILD

27 lines
670 B
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
2009-09-26 15:21:59 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=zlib
pkgver=1.2.3.3
pkgrel=2
pkgdesc="A compression/decompression Library"
arch=(arm)
license=('custom:zlib')
url="http://www.zlib.net/"
groups=('base')
2009-09-26 15:21:59 +00:00
depends=()
2009-09-27 18:51:29 +00:00
source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz)
2009-09-26 14:35:50 +00:00
md5sums=('c444cf020e5f0e3323b11f5a2d8af8d3')
build() {
2009-09-27 18:51:29 +00:00
cd $srcdir/zlib-$pkgver
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
./configure --prefix=/opt --shared
2009-09-26 14:35:50 +00:00
make || return 1
2009-09-27 18:51:29 +00:00
make install prefix=$pkgdir/opt || return 1
chmod 644 $pkgdir/opt/lib/libz.a
2009-09-26 14:35:50 +00:00
grep -A 24 '^ Copyright' zlib.h > license.txt
2009-09-27 18:51:29 +00:00
install -Dm644 license.txt $pkgdir/opt/share/licenses/zlib/license.txt
2009-09-26 14:35:50 +00:00
}