summaryrefslogtreecommitdiffstats
path: root/acompiler
diff options
context:
space:
mode:
Diffstat (limited to 'acompiler')
-rw-r--r--acompiler/opera/.footprint25
-rw-r--r--acompiler/opera/Pkgfile9
-rw-r--r--acompiler/opera/post-install2
3 files changed, 12 insertions, 24 deletions
diff --git a/acompiler/opera/.footprint b/acompiler/opera/.footprint
index 4caeac06b..3f9601ce1 100644
--- a/acompiler/opera/.footprint
+++ b/acompiler/opera/.footprint
@@ -20,15 +20,10 @@ drwxr-xr-x root/root usr/lib/opera/plugins/
-rw-r--r-- root/root usr/lib/opera/plugins/README
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
--rw-r--r-- root/root usr/share/applications/mimeinfo.cache
-rw-r--r-- root/root usr/share/applications/opera-browser.desktop
-rw-r--r-- root/root usr/share/applications/opera-widget-installer.desktop
-rw-r--r-- root/root usr/share/applications/opera-widget-manager.desktop
-rw-r--r-- root/root usr/share/applications/opera.desktop
-drwxr-xr-x root/root usr/share/doc/
-drwxr-xr-x root/root usr/share/doc/opera/
--rw-r--r-- root/root usr/share/doc/opera/LGPL-2
--rw-r--r-- root/root usr/share/doc/opera/LICENSE
drwxr-xr-x root/root usr/share/icons/
drwxr-xr-x root/root usr/share/icons/hicolor/
drwxr-xr-x root/root usr/share/icons/hicolor/128x128/
@@ -80,31 +75,17 @@ drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/opera-widget.svg
drwxr-xr-x root/root usr/share/icons/hicolor/scalable/mimetypes/
-rw-r--r-- root/root usr/share/icons/hicolor/scalable/mimetypes/opera-unite-application.svg
-drwxr-xr-x root/root usr/share/licences/
-drwxr-xr-x root/root usr/share/licences/opera/
--rw-r--r-- root/root usr/share/licences/opera/licence.txt
+drwxr-xr-x root/root usr/share/licenses/
+drwxr-xr-x root/root usr/share/licenses/opera/
+-rw-r--r-- root/root usr/share/licenses/opera/licence.txt
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/opera-widget-manager.1.gz
-rw-r--r-- root/root usr/share/man/man1/opera.1.gz
drwxr-xr-x root/root usr/share/mime/
--rw-r--r-- root/root usr/share/mime/XMLnamespaces (EMPTY)
--rw-r--r-- root/root usr/share/mime/aliases (EMPTY)
-drwxr-xr-x root/root usr/share/mime/application/
--rw-r--r-- root/root usr/share/mime/application/x-opera-uniteapplication.xml
--rw-r--r-- root/root usr/share/mime/application/x-opera-widgets.xml
--rw-r--r-- root/root usr/share/mime/generic-icons (EMPTY)
--rw-r--r-- root/root usr/share/mime/globs
--rw-r--r-- root/root usr/share/mime/globs2
--rw-r--r-- root/root usr/share/mime/icons
--rw-r--r-- root/root usr/share/mime/magic
--rw-r--r-- root/root usr/share/mime/mime.cache
drwxr-xr-x root/root usr/share/mime/packages/
-rw-r--r-- root/root usr/share/mime/packages/opera-unite-application.xml
-rw-r--r-- root/root usr/share/mime/packages/opera-widget.xml
--rw-r--r-- root/root usr/share/mime/subclasses
--rw-r--r-- root/root usr/share/mime/treemagic
--rw-r--r-- root/root usr/share/mime/types
drwxr-xr-x root/root usr/share/opera/
drwxr-xr-x root/root usr/share/opera/defaults/
-rw-r--r-- root/root usr/share/opera/defaults/bookmarks.adr
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
}
diff --git a/acompiler/opera/post-install b/acompiler/opera/post-install
new file mode 100644
index 000000000..6a3089f10
--- /dev/null
+++ b/acompiler/opera/post-install
@@ -0,0 +1,2 @@
+update-desktop-database /usr/share/applications
+update-mime-database /usr/share/mime