#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-e16 VERSION=0.16.8.5 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf e16-$VERSION tar xzf $CWD/e16-$VERSION.tar.gz cd e16-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ $TARGET || exit make || exit make DESTDIR=$PKG install || exit chown -R root.bin $PKG/usr/bin mkdir -p $PKG/usr/doc/e16-$VERSION cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/e16-$VERSION chmod 644 $PKG/usr/doc/e16-$VERSION/* mkdir -p $PKG/etc/X11/xinit zcat $CWD/xinitrc.e16.gz > $PKG/etc/X11/xinit/xinitrc.e16 chmod 755 $PKG/etc/X11/xinit/xinitrc.e16 ( cd $PKG find . -type f | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/e16-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/e16.build.log