CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libcap: updated to 2.25-2
[crossrootfs.git] / zlib / Pkgfile
index e05990372698ce6b58fba4d0d4e1bea8c7e67c41..2deff204c0c22d69b75717439520fb5f3202c8d9 100644 (file)
@@ -5,20 +5,15 @@
 # Depends on:
 
 name=zlib
-version=1.2.3
+version=1.2.11
 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)
+source=(http://www.zlib.net/$name-$version.tar.gz)
 
 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 install
+  ln -sf ../../lib/libz.so.$version $PKG/usr/lib/libz.so
+  rm $PKG/lib/libz.so
 }