summaryrefslogtreecommitdiffstats
path: root/base/zlib/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:28:50 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:28:50 +0200
commit5559b10add25b8c7ce8e211d3ffcebc9d8b725c0 (patch)
tree814a1a72a09d58edcb9d89068f9e3988f592c0f8 /base/zlib/Pkgfile
parente4062154162bbf08fa4fd243a1d754d1d75b8fd7 (diff)
downloadnutyx-pakxe-5559b10add25b8c7ce8e211d3ffcebc9d8b725c0.tar.gz
nutyx-pakxe-5559b10add25b8c7ce8e211d3ffcebc9d8b725c0.tar.bz2
nutyx-pakxe-5559b10add25b8c7ce8e211d3ffcebc9d8b725c0.tar.xz
nutyx-pakxe-5559b10add25b8c7ce8e211d3ffcebc9d8b725c0.zip
Ajout de zlib#1.2.3-1
Diffstat (limited to 'base/zlib/Pkgfile')
-rwxr-xr-xbase/zlib/Pkgfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/base/zlib/Pkgfile b/base/zlib/Pkgfile
new file mode 100755
index 000000000..94fcd4aab
--- /dev/null
+++ b/base/zlib/Pkgfile
@@ -0,0 +1,27 @@
+# Description: Librairie de compression/décompression
+# URL: http://www.zlib.net/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: glibc
+
+name=zlib
+version=1.2.3
+release=1
+source=(http://www.zlib.net/$name-$version.tar.bz2)
+
+build() {
+ cd $name-$version
+ export CFLAGS="${CFLAGS} -fPIC"
+ ./configure --prefix=/usr --shared --libdir=/lib
+ make
+ make prefix=$PKG/usr libdir=$PKG/lib install
+ rm -v $PKG/lib/libz.so
+ mkdir -p $PKG/usr/lib
+ ln -sfv ../../lib/libz.so.1.2.3 $PKG/usr/lib/libz.so
+ make clean
+ ./configure --prefix=/usr
+ make
+ make prefix=$PKG/usr install
+
+ chmod -v 644 $PKG/usr/lib/libz.a
+}