#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-libmikmod VERSION=3.1.11 ARCH=alpha BUILD=4 TARGET=$ARCH-alphaslack-linux ( cd $TMP tar xzf $CWD/libmikmod-$VERSION.tar.gz cd libmikmod-$VERSION zcat $CWD/libmikmod-3.1.11-a.diff.gz | patch -p1 --verbose chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --disable-static \ $TARGET make make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin ; chmod 755 $PKG/usr/lib/libmik* strip --strip-unneeded $PKG/usr/lib/*.so.* rm -rf $PKG/usr/info/dir gzip -9 $PKG/usr/info/* gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/libmikmod-$VERSION cp -a AUTHORS NEWS README COPYI* TODO $PKG/usr/doc/libmikmod-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/libmikmod-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/libmikmod.build.log