#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-nasm VERSION=2.08.01 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf nasm-$VERSION tar xjf $CWD/nasm-$VERSION.tar.bz2 cd nasm-$VERSION chown -R root.root . find . -perm 775 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --mandir=/usr/man \ --build=$TARGET make || exit 1 make install INSTALLROOT=$PKG ( cd $PKG/usr/bin strip --strip-unneeded * chown -R root.bin . ) gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/nams-$VERSION cp -a A* C* I* R* T* $PKG/usr/doc/nams-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/nasm-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/nasm.build.log