#!/bin/sh # Build hfsutils for slackintosh # # Modified for slamd64 # VERSION=${VERSION:-3.2.6} ARCH=${ARCH:-x86_64} BUILD=${BUILD:-1} LIBDIR=lib if [ "$ARCH" = "x86_64" ]; then LIBDIR=lib64; fi CWD=`pwd` TMP=/tmp PKG=$TMP/package-hfsutils rm -rf $PKG mkdir -p $PKG cd $TMP rm -rf hfsutils-$VERSION tar xzvf $CWD/hfsutils-$VERSION.tar.gz cd hfsutils-$VERSION chown -R root.root . CFLAGS="-O2" ./configure --prefix=/usr --libdir=/usr/$LIBDIR \ $ARCH-slackware-linux # Build screen: make sleep 1 #Copy stuff mkdir -p $TMP/package-hfsutils/usr/bin find . -perm -755 -name "h*"|cpio -pvmd $TMP/package-hfsutils/usr/bin # Prepare package: strip --strip-unneeded $PKG/usr/bin/h* chown -R root.bin $PKG/usr/bin mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build package: cd $PKG makepkg -l y -c n $TMP/hfsutils-$VERSION-$ARCH-$BUILD.tgz