aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-calculator/APKBUILD
blob: 3a0fe546cc8e428e4f225e68b6dbccbbf0841c79 (plain) (blame)
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
# Contributors: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-calculator
pkgver=41.0
pkgrel=0
pkgdesc="Calculator for solving mathematical equations"
url="https://wiki.gnome.org/Apps/Calculator"
# s390x, mips64 and riscv64 blocked by rust -> libhandy1
arch="all !s390x !mips !mips64 !riscv64"
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://download.gnome.org/sources/gnome-calculator/${pkgver%.*}/gnome-calculator-$pkgver.tar.xz"

if [ $CARCH = armhf ]; then
	options="!check"; # tests time out on armhf
fi

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c64538c9e9a183411263c88eb74a831a4f89f0eca2d496f1eed98ee6051737110ab992931ec75c0566c8528b209ba4f4103af3497a7ad29643814e4d2ef70c54  gnome-calculator-41.0.tar.xz
"