wok-4.x rev 4980
fix: opera URL, RAM size and decrease overall pkg size
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 15:26:00 2010 +0000 (2010-02-24) |
parents | 827a9b65573d |
children | 596332a90ae8 |
files | get-opera/receipt get-opera/stuff/get-opera |
line diff
1.1 --- a/get-opera/receipt Wed Feb 24 13:15:05 2010 +0000 1.2 +++ b/get-opera/receipt Wed Feb 24 15:26:00 2010 +0000 1.3 @@ -6,6 +6,7 @@ 1.4 SHORT_DESC="Get Opera Web browser." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 WEB_SITE="http://www.opera.com/" 1.7 +TAGS="browser" 1.8 1.9 # Rules to gen a SliTaz package suitable for Tazpkg. 1.10 genpkg_rules()
2.1 --- a/get-opera/stuff/get-opera Wed Feb 24 13:15:05 2010 +0000 2.2 +++ b/get-opera/stuff/get-opera Wed Feb 24 15:26:00 2010 +0000 2.3 @@ -28,7 +28,7 @@ 2.4 wget -s $URL$N/$RELEASE/en/i386/ 2> /dev/null && break 2.5 done 2.6 URL=$URL$N/$RELEASE/en/i386/ 2.7 -FILE=$(wget -O - $URL 2> /dev/null | grep rpm | sed 's|.*href="\(.*\)".*|\1|') 2.8 +FILE=$(wget -O - $URL 2> /dev/null | grep "gcc4.qt4.i386.rpm" | sed 's|.*href="\(.*\)".*|\1|') 2.9 URL=$URL$FILE 2.10 wget $URL 2.11 if [ ! -f $FILE ]; then 2.12 @@ -45,6 +45,8 @@ 2.13 # Extract files 2.14 cd opera-$VERSION/fs 2.15 rpm2cpio < ../../$FILE | cpio -idm 2.16 +# extracted pkg can be removed: Save RAM 2.17 +rm -f ../../$FILE 2.18 2.19 # Create menu 2.20 mkdir -p usr/share/applications 2.21 @@ -96,9 +98,25 @@ 2.22 WEB_SITE="http://www.opera.com/" 2.23 EOT 2.24 2.25 +# Remove unwanted locale 2.26 +mv opera-$VERSION/fs/usr/share/opera/locale opera-$VERSION/fs/usr/share/opera/locale-full 2.27 +mkdir -p opera-$VERSION/fs/usr/share/opera/locale 2.28 +cp -a opera-$VERSION/fs/usr/share/opera/locale-full/en \ 2.29 + opera-$VERSION/fs/usr/share/opera/locale-full/fr \ 2.30 + opera-$VERSION/fs/usr/share/opera/locale-full/pt \ 2.31 + opera-$VERSION/fs/usr/share/opera/locale-full/de \ 2.32 + opera-$VERSION/fs/usr/share/opera/locale-full/zh-cn \ 2.33 + opera-$VERSION/fs/usr/share/opera/locale 2.34 +rm -rf opera-$VERSION/fs/usr/share/opera/locale-full 2.35 +rm -rf opera-$VERSION/fs/usr/share/pixmaps 2.36 + 2.37 + 2.38 # Pack 2.39 tazpkg pack opera-$VERSION 2.40 2.41 +# Clean to save RAM memory 2.42 +rm -rf opera-$VERSION 2.43 + 2.44 # Install pseudo package 2.45 tazpkg install opera-$VERSION.tazpkg --root=$ROOT 2.46