~midori/midori/trunk

« back to all changes in this revision

Viewing changes to snap/snapcraft.yaml

  • Committer: Christian Dywan
  • Date: 2017-09-03 22:39:06 UTC
  • mto: This revision was merged to the branch mainline in revision 7166.
  • Revision ID: christian@twotoasts.de-20170903223906-p7tpf18hn550gaat
Snap packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
name: midori
 
2
version: bzr
 
3
version-script: |
 
4
  VERSION=$(grep -r "^set(VERSION" CMakeLists.txt | sed -r "s@.+ ([0-9.]+)\)@\1@")
 
5
  REVISION=$(bzr revno)
 
6
  echo $VERSION~r$REVISION
 
7
summary: a lightweight, fast, and free web browser
 
8
description: |
 
9
  Midori is a fast little WebKit browser with support for HTML5. It can manage
 
10
  many open tabs and windows. The URL bar completes history, bookmarks, search
 
11
  engines and open tabs out of the box. Web developers can use the powerful
 
12
  web inspector that is a part of WebKit. Individual pages can easily be turned
 
13
  into web apps and new profiles can be created on demand.
 
14
 
 
15
  A number of extensions are included by default:
 
16
 
 
17
  * Adblock with support for ABP filter lists and custom rules is built-in.
 
18
  * You can download files with Aria2 or SteadyFlow.
 
19
  * User scripts and styles support a la Greasemonkey.
 
20
  * Managing cookies and scripts via NoJS and Cookie Security Manager.
 
21
  * Switching open tabs in a vertical panel or a popup window.
 
22
 
 
23
grade: stable
 
24
confinement: strict
 
25
icon: icons/scalable/apps/midori.svg
 
26
 
 
27
apps:
 
28
  midori:
 
29
    command: desktop-launch snapcraft-preload midori
 
30
    plugs:
 
31
      - home
 
32
      - pulseaudio
 
33
      - network
 
34
      - camera
 
35
      - removable-media
 
36
      - unity7
 
37
      - wayland
 
38
      - mir
 
39
      - screen-inhibit-control
 
40
      - password-manager-service
 
41
      - gsettings
 
42
      - network-bind
 
43
      - location-observe
 
44
      - network-status
 
45
    desktop: share/applications/midori.desktop
 
46
    environment:
 
47
      LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/:$LD_LIBRARY_PATH
 
48
      # Work-around GPU crash https://bugs.webkit.org/show_bug.cgi?id=126122
 
49
      WEBKIT_DISABLE_COMPOSITING_MODE: 1
 
50
      GTK_CSD: 1
 
51
      # No Netscape plugins
 
52
      MOZ_PLUGIN_PATH: /
 
53
 
 
54
slots:
 
55
  dbus:
 
56
    name: de.twotoasts.midori
 
57
    bus: session
 
58
 
 
59
parts:
 
60
  midori:
 
61
    plugin: cmake
 
62
    configflags:
 
63
      - -DCMAKE_INSTALL_DATADIR=/usr/share
 
64
      - -DHALF_BRO_INCOM_WEBKIT2=1
 
65
    build-packages:
 
66
      - valac
 
67
      - libwebkit2gtk-4.0-dev
 
68
      - libsoup-gnome2.4-dev
 
69
      - libzeitgeist-2.0-dev
 
70
      - libgcr-3-dev
 
71
    install: |
 
72
      echo "[settings]\n" \
 
73
      "toolbar-items=" \
 
74
      "TabNew,Back,NextForward,ReloadStop,BookmarkAdd,Location,Trash,CompactMenu\n" \
 
75
      "show-statusbar=false\n" \
 
76
      > $SNAPCRAFT_PART_INSTALL/etc/xdg/midori/config
 
77
    stage-packages:
 
78
      - libwebkit2gtk-4.0-37
 
79
      - libcanberra-gtk3-module
 
80
      - libc-bin
 
81
      - myspell-en-us
 
82
      - gnome-icon-theme-symbolic
 
83
      - gstreamer1.0-x
 
84
      - gstreamer1.0-plugins-base
 
85
      - gstreamer1.0-plugins-good
 
86
      - gstreamer1.0-plugins-bad
 
87
      - gstreamer1.0-plugins-ugly
 
88
      - gstreamer1.0-pulseaudio
 
89
      - pulseaudio-module-x11
 
90
      - libmirclient9
 
91
    stage:
 
92
      - -share/applications/midori-private.desktop
 
93
      - -usr/lib/x86_64-linux-gnu/libcups.so.2
 
94
      - -usr/share/doc/libcups2/changelog.Debian.gz
 
95
      - -usr/share/doc
 
96
    after:
 
97
      - desktop-gtk3
 
98
      - snapcraft-preload
 
99
  snapcraft-preload:
 
100
    source: https://github.com/kalikiana/snapcraft-preload.git
 
101
    source-branch: webkitgtk2
 
102
    plugin: cmake
 
103
    build-packages:
 
104
      - gcc-multilib
 
105
      - g++-multilib