#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-pkgtools VERSION=8.3.0 DIALOG=0.9b-20031207 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux mkdir -p $PKG cd $PKG explodepkg $CWD/_pkgtools.tar.gz ( cd $TMP tar xzf $CWD/dialog-$DIALOG.tar.gz cd dialog-$DIALOG find . -perm 444 -exec chmod 644 {} \; chown -R root.root . # Disable broken arrows in textbox widget: zcat $CWD/dialog.textbox.noarrows.diff.gz | patch -p1 ./configure --prefix=/usr --enable-nls $TARGET make strip dialog cat dialog > $PKG/bin/dialog cat dialog.1 | gzip -9c > $PKG/usr/man/man1/dialog.1.gz mkdir -p $PKG/etc cat samples/slackware.rc > $PKG/etc/dialogrc cd po make for file in *.gmo ; do mkdir -p $PKG/usr/share/locale/`basename $file .gmo`/LC_MESSAGES cat $file > $PKG/usr/share/locale/`basename $file .gmo`/LC_MESSAGES/dialog.mo done cd .. # Install some docs: PDOCS=$PKG/usr/doc/dialog-$DIALOG mkdir -p $PDOCS cp -a CHANGES COPYING README VERSION dialog.lsm $PDOCS cd $CWD for page in explodepkg.8 installpkg.8 makepkg.8 upgradepkg.8 pkgtool.8 \ removepkg.8 ; do cat $page | gzip -9c > $PKG/usr/man/man8/$page.gz done mkdir -p $PKG/usr/X11R6/man/man1 cat $CWD/xwmconfig.1 | gzip -9c > $PKG/usr/X11R6/man/man1/xwmconfig.1.gz mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/pkgtools-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/pkgtools.build.log