#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-hd2u VERSION=1.0.3 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf hd2u-$VERSION tar xzf $CWD/hd2u-$VERSION.tgz cd hd2u-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --build=$TARGET make || exit 1 install -c -d -m 755 $PKG/usr/bin install -c -m 755 -s dos2unix $PKG/usr/bin mkdir -p $PKG/usr/doc/hd2u-$VERSION cp -a AUTHORS C* NEWS INSTALL README TODO $PKG/usr/doc/hd2u-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/hd2u-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/hd2u.build.log