CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
zlib: update to 1.2.7
[crossrootfs.git] / zlib / Pkgfile
index cd2f0707be2565ab5d0c0f43668e8eb95777d3b0..6ccc8282cb66659415679a624228a9c82952dc82 100644 (file)
@@ -1,24 +1,19 @@
 # Description: A compression/decompression Library
 # URL: http://www.zlib.net/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on:
 
 name=zlib
-version=1.2.3
-release=1
-source=(http://www.zlib.net/$name-$version.tar.bz2 
-       http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-sysroot/patches/$name-$version-fPIC-1.patch)
+version=1.2.7
+release=2
+source=(http://www.zlib.net/$name-$version.tar.bz2)
 
 build() {
   cd $name-$version
-  patch -Np1 -i ../$name-$version-fPIC-1.patch
-
-  ./configure --prefix=/usr \
-              --shared
-
-  make AR="$AR rc"
-  make prefix=$PKG/usr mandir=$PKG/usr/man install
-
-  chmod -v 644 $PKG/usr/lib/libz.a
+  ./configure --prefix=/usr --sharedlibdir=/lib
+  make
+  make DESTDIR=$PKG mandir=/usr/man install
+  ln -sf ../../lib/libz.so.$version $PKG/usr/lib/libz.so
+  rm $PKG/lib/libz.so
 }