summaryrefslogtreecommitdiff
path: root/libre/epiphany/PKGBUILD
blob: 71ae7b6cb348e1ae5d7ac2eb24d6573138ffc391 (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
# $Id: PKGBUILD 288002 2017-02-03 23:55:29Z heftig $
# Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>

pkgname=epiphany
pkgver=3.26.2
pkgrel=1.parabola1
pkgdesc="A GNOME web browser based on the WebKit rendering engine, with DuckDuckGo HTML support"
url="https://wiki.gnome.org/Apps/Web"
arch=(i686 x86_64 armv7h)
license=(GPL)
depends=(webkit2gtk gcr gnome-desktop icu)
makedepends=(itstool docbook-xml startup-notification lsb-release
             gobject-introspection yelp-tools appstream-glib git meson)
groups=(gnome)
replaces=(${pkgname}-libre)
conflicts=(${pkgname}-libre)
_commit=e02df42f79051d7c2895ea1f398b75dcf0733b91 # tags/3.26.2
source=("git+https://git.gnome.org/browse/epiphany#commit=$_commit"
        "git+https://git.gnome.org/browse/libgd"
        "git+https://git.gnome.org/browse/gvdb"
        pluginsdir.diff
        libre.patch)
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            '0e4db79fe22a4ed447aa926eecd09fc660cf2f5aac2d42aa9adaacad45416faf'
            '8cee8e5f896ce12832d50e7ab97ef16165d70d135018742e0f5bc15507d4e708')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  mkdir build
  cd $pkgname
  patch -Np1 -i ../pluginsdir.diff
  patch -Np1 -i ../libre.patch

  git submodule init
  git config --local submodule.libgd.url "$srcdir/libgd"
  git config --local submodule.gvdb.url "$srcdir/gvdb"
  git submodule update

}

build() {
  cd build
  arch-meson ../$pkgname -Ddistributor_name="Parabola GNU/Linux-libre"
  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}