CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
curl: aligned with upstream
[crossrootfs.git] / zlib / Pkgfile
index a0098f2eb13d0843c5fd8217083a9520377f063e..a2b68ff7f03842824fed9defdb7f4070de89c392 100644 (file)
@@ -5,20 +5,15 @@
 # Depends on:
 
 name=zlib
-version=1.2.5
+version=1.2.7
 release=2
-source=(http://dl.sourceforge.net/project/libpng/$name/$version/$name-$version.tar.bz2 \
-        $name-$version-lfs-decls.patch)
+source=(http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/7.3/$name-$version.tar.bz2)
 
 build() {
   cd $name-$version
-  patch -p1 -i $SRC/$name-$version-lfs-decls.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
 }