#!/bin/sh VERSION=5.3 ARCH=arm BUILD=1 # Source the cross compile ARM environment variables source /armedslack/source/armslack-utils/arm-cross-envs.sh CWD="$( pwd )" PKG=$TMP/package-hdparm rm -rf $PKG mkdir -p $PKG cd $TMP rm -rf hdparm-* tar xzvf $CWD/hdparm-$VERSION.tar.gz cd hdparm-$VERSION chown -R root.root . make -e arm-linux-strip hdparm mkdir -p $PKG/usr/sbin cat hdparm > $PKG/usr/sbin/hdparm chmod 755 $PKG/usr/sbin/hdparm chown -R root.bin $PKG/usr/sbin mkdir -p $PKG/usr/man/man8 cat hdparm.8 | gzip -9c > $PKG/usr/man/man8/hdparm.8.gz mkdir -p $PKG/usr/doc/hdparm-$VERSION cp -a \ README.acoustic hdparm.lsm contrib \ $PKG/usr/doc/hdparm-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $BUILDSTORE/a/hdparm-$VERSION-$ARCH-$BUILD.tgz cd $BUILDSTORE/a/ ; slackdtxt -t hdparm-$VERSION-$ARCH-$BUILD.tgz #EOF