summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zlib/Pkgfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/zlib/Pkgfile b/zlib/Pkgfile
index 80d0e93..8c39e07 100644
--- a/zlib/Pkgfile
+++ b/zlib/Pkgfile
@@ -7,12 +7,17 @@ depends=()
name=zlib
version=1.2.5
release=2
-source=(http://www.zlib.net/$name-$version.tar.bz2 zlib-$version-lfs-decls.patch)
+source=(
+ http://www.zlib.net/$name-$version.tar.bz2
+ zlib-$version-lfs-decls.patch
+)
build ()
{
cd $name-$version;
patch -p1 -i $SRC/$name-$version-lfs-decls.patch;
- ./configure --prefix=$prefix;
+ CHOST=$CTARGET ./configure \
+ --shared \
+ --prefix=$prefix;
make;
make DESTDIR=$PKG mandir=$mandir install
}