summaryrefslogtreecommitdiff
path: root/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-11 22:24:53 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:53 +0200
commit4b4d9aae0dd0163d3abca00da0c4f79cdb425702 (patch)
tree02e79f6c68e95e360a7e5e1c3ed9e90228b47bf4 /multimedia/mplayerplug-in/mplayerplug-in.SlackBuild
parente71ed70638081eca6a12ac5b8135f8066d05212f (diff)
downloadslackbuilds-4b4d9aae0dd0163d3abca00da0c4f79cdb425702.tar.gz
multimedia/mplayerplug-in: Updated for version 3.55
Diffstat (limited to 'multimedia/mplayerplug-in/mplayerplug-in.SlackBuild')
-rw-r--r--multimedia/mplayerplug-in/mplayerplug-in.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild b/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild
index e6e5f490ef..801dabe783 100644
--- a/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild
+++ b/multimedia/mplayerplug-in/mplayerplug-in.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mplayerplug-in
-VERSION=3.50
+VERSION=3.55
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,22 +33,23 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-PDOCS="ChangeLog INSTALL LICENSE README TODO"
+DOCS="ChangeLog INSTALL README TODO"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
-set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
+cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || 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 \) \
@@ -62,25 +63,26 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-gmp
+ --enable-gmp \
+ || exit 1
-make
-make install DESTDIR=$PKG
+make || exit 1
+make install DESTDIR=$PKG || exit 1
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $PDOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $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:
mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
mv $PKG/etc/$PRGNAM.types $PKG/etc/$PRGNAM.types.new
-# Remove empty directories
find $PKG -type d -depth -exec rmdir {} \; 2>/dev/null
mkdir -p $PKG/install