summaryrefslogtreecommitdiffstats
path: root/acompiler/opera/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-09-12 00:55:49 +0200
committertnut <thierryn1 at hispeed dot ch>2010-09-12 00:55:49 +0200
commitc021adc520b829d3ce48bed48054e81761ca39f2 (patch)
tree404615524ae753a1050e9deff984c00c339471d7 /acompiler/opera/Pkgfile
parent0a87cbf6a74d74b680319da0ac5f0971222ca104 (diff)
downloadnutyx-pakxe-c021adc520b829d3ce48bed48054e81761ca39f2.tar.gz
nutyx-pakxe-c021adc520b829d3ce48bed48054e81761ca39f2.tar.bz2
nutyx-pakxe-c021adc520b829d3ce48bed48054e81761ca39f2.tar.xz
nutyx-pakxe-c021adc520b829d3ce48bed48054e81761ca39f2.zip
opera, corretion du build et ajout du post-install
Diffstat (limited to 'acompiler/opera/Pkgfile')
-rw-r--r--acompiler/opera/Pkgfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/acompiler/opera/Pkgfile b/acompiler/opera/Pkgfile
index 793145e24..ed6e564ed 100644
--- a/acompiler/opera/Pkgfile
+++ b/acompiler/opera/Pkgfile
@@ -17,10 +17,15 @@ source=( ftp://ftp.opera.com/pub/opera/linux/1062/opera-$version-6438.${_ARCH}.l
build() {
cd $name-*
- ./install --unattended --user
- mv ~/.local $PKG/usr
+ sed -i "s|finalize_xdg()|xdg()|" install
+ sed -i "/finalize_xdg/d" install
+ sed -i "s|PREFIX=/usr/local|PREFIX=$PKG/usr|" install
+ ./install --unattended --system --force
+ sed -i -e "s|$PKG||g" $PKG/usr/bin/opera
+ rm -r $PKG/usr/share/doc
mkdir -p $PKG/usr/share/{applications,licences/opera,icons/hicolor/48x48/apps}
install -D -m 644 ../opera.desktop $PKG/usr/share/applications/
install -D -m 644 LICENSE $PKG/usr/share/licences/opera/licence.txt
cp ../opera.png $PKG/usr/share/icons/hicolor/48x48/apps/opera.png
+ mv $PKG/usr/share/licen{c,s}es
}