aboutsummaryrefslogtreecommitdiff
path: root/network/opera/opera.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/opera/opera.SlackBuild')
-rw-r--r--network/opera/opera.SlackBuild33
1 files changed, 19 insertions, 14 deletions
diff --git a/network/opera/opera.SlackBuild b/network/opera/opera.SlackBuild
index 135597c71d889..d6d4191e17b1a 100644
--- a/network/opera/opera.SlackBuild
+++ b/network/opera/opera.SlackBuild
@@ -26,14 +26,14 @@
# Now maintained by vvoody <vvoodywang@gmail.com>
PRGNAM=opera
-VERSION=11.61
-REVNO=1250
+VERSION=11.62
+REVNO=1347
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i386 ;;
+ i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -48,8 +48,10 @@ set -eu
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
-elif [ "$ARCH" = "i386" ]; then
+ OARCH=$ARCH
+elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
+ OARCH=i386
else
printf "\n\n$ARCH is not supported...\n"
exit 1
@@ -58,9 +60,9 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-${VERSION}-${REVNO}.${ARCH}.linux
-tar xf $CWD/$PRGNAM-${VERSION}-${REVNO}.${ARCH}.linux.tar.xz
-cd $PRGNAM-${VERSION}-${REVNO}.${ARCH}.linux
+rm -rf $PRGNAM-${VERSION}-${REVNO}.${OARCH}.linux
+tar xf $CWD/$PRGNAM-${VERSION}-${REVNO}.${OARCH}.linux.tar.xz
+cd $PRGNAM-${VERSION}-${REVNO}.${OARCH}.linux
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -68,15 +70,18 @@ chmod -R u+w,go+r-w,a-s .
--prefix /usr \
--repackage $PKG/usr
-if [ "$LIBDIRSUFFIX" = "64" ]; then
- mv $PKG/usr/lib $PKG/usr/lib64
- sed -i "s,/lib/,/lib64/," $PKG/usr/bin/opera
+if [ -n "$LIBDIRSUFFIX" ]; then
+ mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX
+ sed -i "s,/lib/,/lib$LIBDIRSUFFIX/," $PKG/usr/bin/$PRGNAM
fi
-mv $PKG/usr/share/man $PKG/usr
-mv $PKG/usr/share/doc $PKG/usr
-mv $PKG/usr/doc/opera $PKG/usr/doc/opera-$VERSION
-( cd $PKG/usr/doc ; ln -s opera-$VERSION opera )
+mv $PKG/usr/share/{man,doc} $PKG/usr
+mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/${PRGNAM}-$VERSION
+if [ -f "$PKG/usr/doc/${PRGNAM}-$VERSION/LICENSE" ]; then
+ find $PKG/usr/share/$PRGNAM/{defaults,locale/en*} -name license.txt -type l -delete
+ mv $PKG/usr/doc/${PRGNAM}-$VERSION/LICENSE $PKG/usr/share/$PRGNAM/defaults/license.txt
+ ( cd $PKG/usr/doc/${PRGNAM}-$VERSION/ ; ln -s ../../share/$PRGNAM/defaults/license.txt LICENSE )
+fi
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild