summaryrefslogtreecommitdiff
path: root/snap/snapcraft.yaml
blob: 5761ce88d52d13f062bb6304263e260307a1617c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: midori
version: git
version-script: |
  set -x
  VERSION=$(grep -r "^set(CORE_VERSION" CMakeLists.txt | sed -r "s@.+ ([0-9.]+)\)@\1@")
  echo $(git describe --tags || echo $VERSION)
summary: a lightweight, fast, and free web browser
description: |
  Midori is a lightweight yet powerful web browser which runs just as well on little embedded computers named for delicious pastries as it does on beefy machines with a core temperature exceeding that of planet earth. And it looks good doing that, too. Oh, and of course it's free software.

  Privacy out of the box:

      • Adblock filter list support.
      • Private browsing.
      • Manage cookies and scripts.

  Productivity features:

      • Open a 1000 tabs instantly.
      • Easy web apps creation.
      • Customizable side panels.
      • User scripts and styles a la Greasemonkey.
      • Web developer tools powered by WebKit.

grade: stable
confinement: strict
icon: icons/scalable/apps/midori.svg

apps:
  midori:
    command: desktop-launch snapcraft-preload midori
    plugs:
      - home
      - pulseaudio
      - network
      - camera
      - removable-media
      - unity7
      - wayland
      - mir
      - screen-inhibit-control
      - password-manager-service
      - gsettings
      - network-bind
      - location-observe
      - network-status
    desktop: share/applications/org.midori_browser.Midori.desktop
    environment:
      LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/:$LD_LIBRARY_PATH
      # Work-around GPU crash https://bugs.webkit.org/show_bug.cgi?id=126122
      WEBKIT_DISABLE_COMPOSITING_MODE: 1
      # No Netscape plugins
      MOZ_PLUGIN_PATH: /
      PYTHONHOME: $SNAP/usr

slots:
  dbus:
    name: org.midori_browser.Midori
    bus: session

parts:
  midori:
    plugin: cmake
    configflags:
      - -DCMAKE_INSTALL_DATADIR=/usr/share
      - -DDESKTOP_ICON=/usr/share/icons/hicolor/scalable/apps/midori.svg
    build-packages:
      - git
      - valac
      - libwebkit2gtk-4.0-dev
      - libsoup-gnome2.4-dev
      - libgcr-3-dev
      - libpeas-dev
      - libsqlite3-dev
      - libjson-glib-dev
      - libarchive-dev
      - intltool
      - ninja-build
      - libxml2-utils # xmllint
    stage-packages:
      - libjson-glib-1.0-0
      - libarchive13
      - libwebkit2gtk-4.0-37
      - libgcr-base-3-1
      - libgcr-ui-3-1
      - libgck-1-0
      - libgpm2
      - libdb5.3
      - libcanberra-gtk3-module
      - libpeas-1.0-0-python2loader
      - python-gi
      - gir1.2-webkit2-4.0
      - gir1.2-peas-1.0
      - myspell-en-us
      - gnome-icon-theme-symbolic
      - gstreamer1.0-x
      - gstreamer1.0-plugins-base
      - gstreamer1.0-plugins-good
      - gstreamer1.0-plugins-bad
      - gstreamer1.0-plugins-ugly
      - gstreamer1.0-pulseaudio
      - gstreamer1.0-libav
      - pulseaudio-module-x11
      - libmirclient9
    organize:
      lib/girepository-1.0/Midori-0.6.typelib: usr/lib/girepository-1.0/Midori-0.6.typelib
    stage:
      - -usr/share/gir-1.0/Midori-0.6.gir
      - -usr/lib/*/libcups.so.2
      - -usr/share/doc/libcups2/changelog.Debian.gz
      - -usr/lib/*/libsoup-2.4.so.1.7.0
      - -usr/lib/*/libsoup-gnome-2.4.so.1.7.0
      - -usr/lib/*/libjpeg.so.8.0.2
      - -usr/share/doc
      - -usr/lib/*/libX11-xcb.so.1.0.0
      - -usr/lib/*/libX11.so.6.3.0
      - -usr/share/X11/locale
    after:
      - desktop-gtk3
      - snapcraft-preload
  snapcraft-preload:
    source: https://github.com/kalikiana/snapcraft-preload.git
    source-branch: webkitgtk2
    plugin: cmake
    build-packages:
      - gcc-multilib
      - g++-multilib