From b320f9482a5045e3bfd43e03abe5a1cb24654c2d Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 4 Sep 2020 22:07:35 +0200 Subject: [PATCH] temp/gnome-calculator: copy fork from v20.05 branch (MR 1546) --- temp/gnome-calculator/APKBUILD | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 temp/gnome-calculator/APKBUILD diff --git a/temp/gnome-calculator/APKBUILD b/temp/gnome-calculator/APKBUILD new file mode 100644 index 000000000..f74589812 --- /dev/null +++ b/temp/gnome-calculator/APKBUILD @@ -0,0 +1,36 @@ +# Forked from Alpine to apply Purism's mobile patches + +pkgname=gnome-calculator +pkgver=9999_git20200113 +pkgrel=0 +_commit="b67ef929fdcb2677d31995044f8560574ee0e32f" +pkgdesc="Calculator for solving mathematical equations" +url="https://wiki.gnome.org/Apps/Calculator" +arch="all !s390x !mips !mips64" # gtksourceview4 is not available on s390x +license="GPL-3.0-or-later" +makedepends="vala gtksourceview4-dev glib-dev gtk+3.0-dev libsoup-dev + libxml2-dev meson mpc1-dev mpfr-dev itstool libgee-dev libhandy-dev" +subpackages="$pkgname-doc $pkgname-lang $pkgname-dev" +source="https://source.puri.sm/Librem5/gnome-calculator/-/archive/$_commit/gnome-calculator-$_commit.tar.gz" +builddir="$srcdir/$pkgname-$_commit" + +build() { + meson \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libdir=/usr/lib \ + --buildtype=plain \ + . output + ninja -C output +} + +check() { + ninja -C output test +} + +package() { + DESTDIR="$pkgdir" ninja -C output install +} + +sha512sums="952e0fb09b93852fd28803d41bf2518b9587d8adefb542e9bedf0a336aa94bb9befddd79e0b874cfcf7006e152b57ae036de6f2a922bc13934e6c713fab03f05 gnome-calculator-b67ef929fdcb2677d31995044f8560574ee0e32f.tar.gz"