diff options
Diffstat (limited to 'multimedia/mplayerplug-in/mplayerplug-in.SlackBuild')
-rw-r--r-- | multimedia/mplayerplug-in/mplayerplug-in.SlackBuild | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild b/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild index 801dabe7839a..f835eefacbde 100644 --- a/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild +++ b/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mplayerplug-in -# Copyright 2007-2008 Frank Caraballo <fecaraballo{at}gmail{dot}com> +# Copyright 2007, 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,9 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mplayerplug-in -VERSION=3.55 +VERSION=${VERSION:-3.55} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -33,8 +33,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="ChangeLog INSTALL README TODO" - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then @@ -47,9 +45,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1 cd $PRGNAM-$VERSION || exit 1 - chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -64,6 +61,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-gmp \ + --build=$ARCH-slackware-linux \ || exit 1 make || exit 1 @@ -75,19 +73,17 @@ make install DESTDIR=$PKG || exit 1 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog INSTALL README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; -# Don't overwrite existing config files: +# Don't overwrite existing config file(s): mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new mv $PKG/etc/$PRGNAM.types $PKG/etc/$PRGNAM.types.new -find $PKG -type d -depth -exec rmdir {} \; 2>/dev/null - mkdir -p $PKG/install -cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |