summaryrefslogtreecommitdiff
path: root/network/opera/opera.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/opera/opera.SlackBuild')
-rw-r--r--network/opera/opera.SlackBuild31
1 files changed, 17 insertions, 14 deletions
diff --git a/network/opera/opera.SlackBuild b/network/opera/opera.SlackBuild
index 477f6859e6..eee1eab45e 100644
--- a/network/opera/opera.SlackBuild
+++ b/network/opera/opera.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for opera
# Copyright 2006 Martin Lefebvre <dadexter@gmail.com>
-# Copyright 2008,2009,2010 Robby Workman, Northport, Alabama, USA
+# Copyright 2008-2011 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +23,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Maintained by markus reichelt <slackbuilds@mareichelt.de> 0xCCEEF115
+# Now maintained by vvoody <vvoodywang@gmail.com>
PRGNAM=opera
-VERSION=11.11
-REVNO=2109
-BUILD=${BUILD:-2}
+VERSION=11.50
+REVNO=1074
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -57,19 +57,22 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $PKG
-rm -rf $PRGNAM-${VERSION}-${REVNO}.${ARCH}
-rpm2cpio < $CWD/$PRGNAM-${VERSION}-${REVNO}.${ARCH}.rpm | cpio -imdv
+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
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-[ "$LIBDIRSUFFIX" = "64" ] && patch -p1 < $CWD/fixup_libdir.diff
-[ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
-
-# Fix the package type reported by the build
-# Thanks to Ruarí Ødegaard <ruario@opera.com> for the tip
-sed "s,^\(Package\ Type=\)rpm$,\1tar," -i $PKG/usr/share/opera/package-id.ini
+if [ "$LIBDIRSUFFIX" = "64" ]; then
+ patch -p1 < $CWD/fixup_libdir.diff
+ mv lib lib64
+fi
+./install \
+ --prefix /usr \
+ --repackage $PKG/usr
+
mv $PKG/usr/share/man $PKG/usr
mv $PKG/usr/share/doc $PKG/usr