lrwxrwxrwx root/root usr/lib/libz.so -> ../../lib/libz.so.1.2.8
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/zlib.pc
-drwxr-xr-x root/root usr/man/
-drwxr-xr-x root/root usr/man/man3/
--rw-r--r-- root/root usr/man/man3/zlib.3.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man3/
+-rw-r--r-- root/root usr/share/man/man3/zlib.3.gz
name=zlib
version=1.2.8
-release=1
+release=2
source=(http://www.zlib.net/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr --sharedlibdir=/lib
make
- make DESTDIR=$PKG mandir=/usr/man install
+ make DESTDIR=$PKG install
ln -sf ../../lib/libz.so.$version $PKG/usr/lib/libz.so
rm $PKG/lib/libz.so
}