diff options
Diffstat (limited to 'acompiler/opera/Pkgfile')
-rw-r--r-- | acompiler/opera/Pkgfile | 9 |
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 } |