pmaports/temp/epiphany/APKBUILD

40 lines
1.5 KiB
Text

# Forked from Alpine to apply Purism's mobile patches
pkgname=epiphany
pkgver=9999_git20201019
pkgrel=0
_commit="a14d0fd642b71fdafc639df1330c2ee8d3271089"
pkgdesc="A simple, clean, beautiful view of the web"
url="https://wiki.gnome.org/Apps/Web"
arch="all !s390x !mips !mips64" # libhandy is not available on s390x
license="GPL-3.0-or-later"
depends="gsettings-desktop-schemas dbus:org.freedesktop.Secrets libportal"
makedepends="meson iso-codes-dev gtk+3.0-dev gsettings-desktop-schemas-dev
icu-dev json-glib-dev libdazzle-dev libhandy1-dev libnotify-dev libportal-dev libsecret-dev
libsoup-dev libxml2-dev nettle-dev sqlite-dev webkit2gtk-dev gcr-dev itstool"
checkdepends="appstream-glib desktop-file-utils xvfb-run ibus"
subpackages="$pkgname-lang $pkgname-doc $pkgname-dbg"
source="https://source.puri.sm/Librem5/epiphany/-/archive/$_commit/epiphany-$_commit.tar.gz"
options="!check" # Broken
builddir="$srcdir/$pkgname-$_commit"
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=plain \
. output
ninja -C output
}
check() {
# https://gitlab.gnome.org/GNOME/epiphany/issues/829
env PATH="$PATH:$builddir/output/src" xvfb-run ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
}
sha512sums="42081464bd0ab4d3b954de9b0a98e1b69c0adff948a0b1410232cbbd565463b11a38c4ae1f3fd5511f2e9297c151d5aa07fe1c8236848a684686a0714c9a5b3d epiphany-a14d0fd642b71fdafc639df1330c2ee8d3271089.tar.gz"