pmaports/temp/gnome-calculator/APKBUILD

45 lines
1.3 KiB
Text

# Forked from Alpine to apply Purism's mobile patches
pkgname=gnome-calculator
pkgver=9999_git20210711
pkgrel=0
_commit="73a615ca0a4b6808447e56618429e0506f2aa1a5"
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 libhandy1-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"
prepare() {
default_prepare
grep "\.patch$" debian/patches/series \
| xargs -I {} -t -r -n1 patch -p1 -i debian/patches/{}
}
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="
2e96895a9893d38b3960b056fcfbf92d8d60afc0cc1133970836ddc205632fddfa9e388fef336032b3ee262bbf1d82a0a9db7317e53bf9b3a1ad35a6e7adc105 gnome-calculator-73a615ca0a4b6808447e56618429e0506f2aa1a5.tar.gz
"