# HG changeset patch # User Pascal Bellard # Date 1346749875 -7200 # Node ID c622f7832dc9a41e6ad9f65b1f8f9b2c415dbfc4 # Parent 8b9b79fb08c175e71b0070f754d5a13d33abd934 linux: add RT2800PCI diff -r 8b9b79fb08c1 -r c622f7832dc9 get-opera/stuff/get-opera --- a/get-opera/stuff/get-opera Tue Sep 04 09:25:45 2012 +0200 +++ b/get-opera/stuff/get-opera Tue Sep 04 11:11:15 2012 +0200 @@ -1,7 +1,9 @@ #!/bin/sh -e PACKAGE="opera" +WEB_SITE="http://www.opera.com/" URL=http://mirrors.dedipower.com/opera/linux/ + ROOT="$1" [ -d "$ROOT" ] || ROOT="" @@ -41,17 +43,19 @@ exit 1 fi -mkdir opera -dpkg-deb -e $FILE opera/meta -dpkg-deb -x $FILE opera/fs +mkdir $PACKAGE +dpkg-deb -e $FILE $PACKAGE/meta +dpkg-deb -x $FILE $PACKAGE/fs # extracted pkg can be removed: Save RAM rm -f $FILE sed '/^Description:/,$!d;s/^Description://' \ - < opera/meta/control > opera/description.txt + < $PACKAGE/meta/control > $PACKAGE/description.txt -VERSION=$(grep ^Version opera/meta/control | awk '{ print $2 }') -mv opera opera-$VERSION -cd opera-$VERSION/fs +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" +mv $PACKAGE $PACKAGE-$VERSION +cd $PACKAGE-$VERSION/fs # Create menu mkdir -p usr/share/applications @@ -94,38 +98,39 @@ EOT cd ../.. -cat > opera-$VERSION/receipt < $PACKAGE-$VERSION/receipt <