aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qalculate-gtk/APKBUILD
blob: 4079155b1ce51391e47ac240a8d933ba968bfa4a (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: lonjil <alpine@lonjil.xyz>
# Maintainer: lonjil <alpine@lonjil.xyz>
pkgname=qalculate-gtk
# the pkgver must be kept in sync with: libqalculate
pkgver=3.22.0
pkgrel=1
pkgdesc="Multi-purpose desktop calculator - GTK+ version"
url="https://qalculate.github.io/"
license="GPL-2.0-or-later"
arch="all"
makedepends="
	autoconf
	automake
	glib-dev
	gtk+3.0-dev
	intltool
	libqalculate-dev=~${pkgver%.*}
	libtool
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/Qalculate/qalculate-gtk/releases/download/v$pkgver/qalculate-gtk-$pkgver.tar.gz
	dont-rewrite-Os-to-O2.patch
	install-provider-to-libexecdir.patch
	"
options="!check" # no test suite

prepare() {
	default_prepare

	autoreconf -f
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
029e0a5db69d04a1bfb796915ded3b4533f3036d99833035ae7e8b214f0b2086f6ecb1c08f463561642bdbbd0fd729250a9bc892bbac5ee0a72a9073d7555a04  qalculate-gtk-3.22.0.tar.gz
69ae01c2ed88e0ffc54783913412a830b1d60b06e512b0f1510f18174a29699d41001c9e94d81caa74ac62a3b1119c68b8188ea1ad928672a3ad056681204d07  dont-rewrite-Os-to-O2.patch
53571261070c75c8f597ddb191dc3e97f9f9a8c1a0b214d1c1ceb68353df1ef816e3bce069bf88ec72793fa7882dca7dfaac91a0ced0812531e1ececa71dcba9  install-provider-to-libexecdir.patch
"