| 1 | # Description: A compression/decompression Library |
| 2 | # URL: http://www.zlib.net/ |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX ARM System Team |
| 5 | # Depends on: |
| 6 | |
| 7 | name=zlib |
| 8 | version=1.2.3 |
| 9 | release=1 |
| 10 | source=(http://www.zlib.net/$name-$version.tar.bz2 |
| 11 | http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-sysroot/patches/$name-$version-fPIC-1.patch) |
| 12 | |
| 13 | build() { |
| 14 | cd $name-$version |
| 15 | patch -Np1 -i ../$name-$version-fPIC-1.patch |
| 16 | ./configure --prefix=/usr --shared |
| 17 | make AR="$AR rc" |
| 18 | make prefix=$PKG/usr mandir=$PKG/usr/man install |
| 19 | chmod -v 644 $PKG/usr/lib/libz.a |
| 20 | } |