#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-mpeg_lib VERSION=1.3.1 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP tar xzf $CWD/mpeg_lib-$VERSION.tar.gz cd mpeg_lib-$VERSION ./configure \ --prefix=/usr \ --sysconfdir=/etc \ $TARGET make || exit mkdir -p $PKG/usr/lib cp libmpeg.a $PKG/usr/lib mkdir -p $PKG/usr/include cp -a mpeg.h $PKG/usr/include chown root.root $PKG/usr/include/mpeg.h chmod 644 $PKG/usr/include/mpeg.h mkdir -p $PKG/usr/doc/libmpeg-$VERSION cp -a CHANGES README test.mpg doc $PKG/usr/doc/libmpeg-$VERSION chown -R root.root $PKG/usr/doc/libmpeg-$VERSION chmod 644 $PKG/usr/doc/libmpeg-$VERSION/* $PKG/usr/doc/libmpeg-$VERSION/doc/* chmod 755 $PKG/usr/doc/libmpeg-$VERSION/doc mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/mpeg_lib-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/mpeg_lib.build.log