X-Git-Url: http://gitweb/?a=blobdiff_plain;ds=inline;f=zlib%2FPkgfile;h=a2b68ff7f03842824fed9defdb7f4070de89c392;hb=refs%2Fheads%2F3.0;hp=fd001cac602029f26b4b6f2372a980c944804cb6;hpb=210f40deafdd8dd38dc1d12a25e2b01ede6893ef;p=crossrootfs.git

diff --git a/zlib/Pkgfile b/zlib/Pkgfile
index fd001ca..a2b68ff 100644
--- a/zlib/Pkgfile
+++ b/zlib/Pkgfile
@@ -5,20 +5,15 @@
 # Depends on:
 
 name=zlib
-version=1.2.3
-release=1
-source=(http://kent.dl.sourceforge.net/project/libpng/$name/$version/$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://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/7.3/$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
 }