#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-xlockmore VERSION=5.23 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux ( cd $TMP rm -rf xlockmore-$VERSION tar xjf $CWD/xlockmore-$VERSION.tar.bz2 cd xlockmore-$VERSION chown -R root.root . find . -perm 640 -exec chmod 644 {} \; zcat $CWD/xlockmore.bitmap.diff.gz | patch -p1 --verbose || exit mkdir -p $PKG/usr/X11R6/include/X11/bitmaps cp $CWD/l-bob.xbm $PKG/usr/X11R6/include/X11/bitmaps cp $CWD/s-bob.xbm $PKG/usr/X11R6/include/X11/bitmaps cp $CWD/l-linux.xbm $PKG/usr/X11R6/include/X11/bitmaps mkdir -p $PKG/usr/doc/xlockmore-$VERSION cp -a README $PKG/usr/doc/xlockmore-$VERSION/README cp -a docs/* $PKG/usr/doc/xlockmore-$VERSION cp -a $CWD/l-bob.README $PKG/usr/doc/xlockmore-$VERSION ./configure \ --prefix=/usr/X11R6 \ --without-dtsaver \ --without-ttf \ --without-gtk \ --without-rplay \ --without-nas \ --disable-bomb \ --without-motif \ --without-esound \ --without-gtk \ $TARGET || exit make || exit cd xlock mkdir -p $PKG/etc/X11/app-defaults cat XLock.ad > $PKG/etc/X11/app-defaults/XLock mkdir -p $PKG/usr/X11R6/bin cat xlock > $PKG/usr/X11R6/bin/xlock chown -R root.bin $PKG/usr/X11R6/bin chown root.shadow $PKG/usr/X11R6/bin/xlock chmod 2751 $PKG/usr/X11R6/bin/xlock mkdir -p $PKG/usr/X11R6/man/man1 cat xlock.man | gzip -9c > $PKG/usr/X11R6/man/man1/xlock.1.gz mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) cd $PKG makepkg -l y -c n $TMP/xlockmore-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/xlockmore.build.log