# Maintainer: Que Quotion # Contributor: Adria Arrufat pkgname=epiphany-pantheon pkgver=3.28.0.1+1ubuntu1+r21.dbc305d50 pkgrel=3 pkgdesc="GNOME web browser based on the WebKit rendering engine (with elementary OS patches)" url="https://gitlab.gnome.org/GNOME/epiphany/" arch=('i686' 'x86_64') license=('GPL') depends=('webkit2gtk>=2.19.4' gcr libdazzle gst-libav) makedepends=(meson docbook-xml startup-notification lsb-release gobject-introspection yelp-tools autoconf-archive appstream-glib git) groups=(pantheon) replaces=(epiphany-pantheon-bzr) provides=(epiphany="${pkgver}" epiphany-sync) conflicts=(epiphany) source=("git+https://github.com/elementary/os-patches.git#branch=epiphany-browser-bionic-patched" epiphany-sync{,.service} "block-webkit-filechooser.patch" "add-preview-widget.patch") sha256sums=('SKIP' 'cf90f3ea93fff8c61f82da40c8d07d5db2f33dc9a0d91408a6ffc4142bbedd20' 'ce1ac321d7bf9d88638634a141dfcb99119fc59ee44c4892e0874608e85006ba' 'deabdc2edc635d854ca40789cf949afdb51b9c598b01891390c238cc769524f7' 'df1828b4fe05bd6aeb198db0c56c83c10d54eef27d7a9a6c63cbddc516d6221f') pkgver() { cd "os-patches" printf "3.28.0.1+1ubuntu1+r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare () { cd "os-patches" patch -Np2 < ../block-webkit-filechooser.patch patch -Np2 < ../add-preview-widget.patch } build() { cd "os-patches" [ -d build ] && rm -rf build arch-meson build ninja -C build } package() { cd "os-patches" DESTDIR="${pkgdir}" ninja -C build install install -Dm 755 {"${srcdir}","${pkgdir}"/usr/bin}/epiphany-sync install -Dm 644 {"${srcdir}","${pkgdir}"/usr/lib/systemd/user}/epiphany-sync.service }