rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION mkdir -p $PRGNAM-$VERSION cd $PRGNAM-$VERSION unzip $CWD/${PRGNAM}${VERSION/./}.zip chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; make ive: /usr/src/slapt-src-i486/system/zpaq/zpaq715.zip inflating: zpaq.exe inflating: zpaq64.exe inflating: zpaq.cpp inflating: libzpaq.cpp inflating: libzpaq.h inflating: readme.txt inflating: Makefile inflating: zpaq.pod inflating: COPYING g++ -Dunix -O3 -march=native -o zpaq.o -c zpaq.cpp -pthread g++ -Dunix -O3 -march=native -o libzpaq.o -c libzpaq.cpp g++ -o zpaq zpaq.o libzpaq.o -pthread pod2man zpaq.pod >zpaq.1 mkdir -p $PKG/usr/bin install -m 0755 $PRGNAM $PKG/usr/bin/ mkdir -p $PKG/usr/man/man1 gzip -dc $CWD/$PRGNAM.rst.gz | rst2man.py >$PKG/usr/man/man1/$PRGNAM.1 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a readme.txt $PKG/usr/doc/$PRGNAM-$VERSION gzip -dc $CWD/$PRGNAM.rst.gz > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.rst cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-i486/system/zpaq/zpaq-7.15-i586-1salix15.0.txz ./ install/ install/slack-desc usr/ usr/bin/ usr/bin/zpaq usr/doc/ usr/doc/zpaq-7.15/ usr/doc/zpaq-7.15/readme.txt usr/doc/zpaq-7.15/zpaq.SlackBuild usr/doc/zpaq-7.15/zpaq.rst usr/man/ usr/man/man1/ usr/man/man1/zpaq.1.gz Slackware package /usr/src/slapt-src-i486/system/zpaq/zpaq-7.15-i586-1salix15.0.txz created. Installing package zpaq-7.15-i586-1salix15.0... | zpaq (journaling, incremental, deduplicating archiver) | | "Journaling" means that when you update a file or directory, both the | old and new versions are saved. You can extract from the archive as it | existed at any time in the past. | "Incremental" means that when you back up your entire hard drive, only | those files whose last-modified date has changed since the previous | backup are added. | "Deduplicating" means that identical files or fragments are stored | only once to save time and space. | | |