aboutsummaryrefslogtreecommitdiff
path: root/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/flash-player-plugin/flash-player-plugin.SlackBuild')
-rw-r--r--multimedia/flash-player-plugin/flash-player-plugin.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
index ddf378c72c095..8553ddc04c36c 100644
--- a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
+++ b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
@@ -22,7 +22,7 @@
PRGNAM=flash-player-plugin
VERSION=10.3_r181
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
case "$( uname -m )" in
@@ -45,7 +45,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -56,6 +56,10 @@ cd $TMP
if [ "$SRC_ARCH" = "32bit" ];then
tar xf $CWD/install_flash_player_10_linux.tar.gz -C $PKG
mv $PKG/libflashplayer.so $TMP
+ find $PKG -type d -exec chmod 0755 {} \;
+ find $PKG/usr/lib -type f -name "*.so" -exec chmod 0755 {} \;
+ find $PKG/usr/bin -type f -exec chmod 0755 {} \;
+ find $PKG/usr/share -type f -exec chmod 0644 {} \;
elif [ "$SRC_ARCH" = "64bit" ]; then
tar xf $CWD/flashplayer10_2_p3_64bit_linux_111710.tar.gz
fi
@@ -73,6 +77,10 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+if [ "$SRC_ARCH" = "32bit" ];then
+ cat $CWD/doinst.sh > $PKG/install/doinst.sh
+fi
+
cd $PKG
chown -R root:root .
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}