summaryrefslogtreecommitdiff
path: root/network/mozplugger/mozplugger.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/mozplugger/mozplugger.SlackBuild')
-rw-r--r--network/mozplugger/mozplugger.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/network/mozplugger/mozplugger.SlackBuild b/network/mozplugger/mozplugger.SlackBuild
index 731cbc1c97..fcd9385cd8 100644
--- a/network/mozplugger/mozplugger.SlackBuild
+++ b/network/mozplugger/mozplugger.SlackBuild
@@ -25,7 +25,7 @@
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=mozplugger
-VERSION=1.10.0
+VERSION=1.10.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,24 +46,27 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
+ -o -perm 400 \) -exec chmod 644 {} \;
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
+sed -i 's,share/man,man,' Makefile
make RPM_OPT_FLAGS="$SLKCFLAGS" X11=/usr linux
make root=$PKG install
-( 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 "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+strip --strip-unneeded $PKG/usr/{bin,lib/mozilla/plugins}/*
-mv $PKG/usr/share/man $PKG/usr && rmdir $PKG/usr/share
gzip -9 $PKG/usr/man/man7/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION