~midori/midori/trunk

« back to all changes in this revision

Viewing changes to snap/snapcraft.yaml

  • Committer: RabbitBot
  • Author(s): Christian Dywan
  • Date: 2017-10-06 00:22:54 UTC
  • mfrom: (7165.1.6 midori.trunks)
  • Revision ID: rabbitbot-20171006002254-i8bfnt8ko1kyy46h
Snap packaging

Show diffs side-by-side

added added

removed removed

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