CWD=`pwd` PKG=/tmp/package-popt rm -rf $PKG mkdir -p $PKG/usr VERSION=1.7 ARCH=x86_64 BUILD=2 cd /tmp tar xzvf $CWD/popt-$VERSION.tar.gz cd popt-$VERSION chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 775 -exec chmod 755 {} \; CFLAGS="-O2" \ ./configure --prefix=/usr \ --libdir=/usr/lib64 \ --sysconfdir=/etc make make install DESTDIR=$PKG strip $PKG/usr/bin/* chown -R root.bin $PKG/usr/bin ( cd $PKG find . | xargs file | grep "ELF" | grep "LSB executable" | grep 80386 | cut -f 1 -d : | xargs strip --strip-unneeded find . | xargs file | grep "ELF" | grep "LSB shared object" | grep 80386 | cut -f 1 -d : | xargs strip --strip-unneeded ) gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/popt-$VERSION cp -a \ COPYING README \ $PKG/usr/doc/popt-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd /tmp/package-popt makepkg -l y -c n ../popt-$VERSION-$ARCH-$BUILD.tgz