aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-calculator/APKBUILD
blob: d948a98960dafd145cd8d50a6f116e1422400802 (plain)
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
# Contributors: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-calculator
pkgver=3.34.1
pkgrel=1
pkgdesc="Calculator for solving mathematical equations"
url="https://wiki.gnome.org/Apps/Calculator"
arch="all !s390x" # 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"
subpackages="$pkgname-doc $pkgname-lang $pkgname-dev"
source="https://download.gnome.org/sources/gnome-calculator/${pkgver%.*}/gnome-calculator-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libdir=/usr/lib \
		--buildtype=debugoptimized \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="43900cebc6b479292a45619f1e4f6afc5264e2dceda5d0049b59f27ebe2a32b5f4b2465a22f33b33b882ab0e737f7048fbe9395b18f9b5d2023da2941b6783f6  gnome-calculator-3.34.1.tar.xz"