CWD=`pwd` PKG=/tmp/package-libpng rm -rf $PKG mkdir -p $PKG VERSION=1.2.1 ARCH=i386 BUILD=1 # Old shared lib: cd /tmp tar xzvf $CWD/libpng-1.0.12.tar.gz cd libpng-1.0.12 zcat $CWD/libpng-1.0.12.diff.gz | patch -p1 --verbose --backup --suffix=.orig -E ln -s scripts/makefile.linux ./Makefile make mkdir -p $PKG/usr/lib cat libpng.so.2.1.0.12 > $PKG/usr/lib/libpng.so.2.1.0.12 chmod 755 $PKG/usr/lib/libpng.so.2.1.0.12 ( cd $PKG/usr/lib ; ln -sf libpng.so.2.1.0.12 libpng.so.2 ) # The latest shiniest stuff: cd /tmp tar xzvf $CWD/libpng-$VERSION.tar.gz cd libpng-$VERSION # This seems to work with all flavors: zcat $CWD/libpng-1.0.12.diff.gz | patch -p1 --verbose --backup --suffix=.orig -E ln -s scripts/makefile.linux ./Makefile make make install prefix=/tmp/package-libpng/usr mkdir -p /tmp/package-libpng/usr/man/man{3,5} install -m 644 libpng.3 /tmp/package-libpng/usr/man/man3 install -m 644 libpngpf.3 /tmp/package-libpng/usr/man/man3 install -m 644 png.5 /tmp/package-libpng/usr/man/man5 gzip -9 /tmp/package-libpng/usr/man/man3/* /tmp/package-libpng/usr/man/man5/* mkdir -p /tmp/package-libpng/usr/doc/libpng-$VERSION cp -a ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO libpng.txt \ example.c /tmp/package-libpng/usr/doc/libpng-$VERSION chmod 644 /tmp/package-libpng/usr/doc/libpng-$VERSION/* chown root.root /tmp/package-libpng/usr/doc/libpng-$VERSION/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd /tmp/package-libpng echo "y n" | makepkg ../libpng-$VERSION-$ARCH-$BUILD.tgz