X-Git-Url: http://gitweb/?a=blobdiff_plain;f=zlib%2FPkgfile;h=444943b0fa6d277e72a70200cc2b677f32bf42b9;hb=b4aac807c89c4c3f254c2320ab5a0e7a1fea2c44;hp=e05990372698ce6b58fba4d0d4e1bea8c7e67c41;hpb=b751b192b8a9f558df99b4050babc1b84d45a372;p=crossrootfs.git

diff --git a/zlib/Pkgfile b/zlib/Pkgfile
index e059903..444943b 100644
--- a/zlib/Pkgfile
+++ b/zlib/Pkgfile
@@ -5,20 +5,15 @@
 # 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.8
+release=2
+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
 }