aboutsummaryrefslogtreecommitdiffstats
path: root/testing/speedcrunch/APKBUILD
blob: 1cb2ecb9c74b6d7f3b4340143e1052a2565f671e (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
35
36
37
38
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=speedcrunch
pkgver=0.12
pkgrel=0
pkgdesc="SpeedCrunch is a high-precision scientific calculator."
url="http://www.speedcrunch.org/"
arch="all"
license="GPL"
makedepends="cmake py-sphinx py-sphinx-theme-quark
	qt5-qtbase-dev qt5-qttools-dev libxkbcommon-dev"
source="https://bitbucket.org/heldercorreia/speedcrunch/get/release-0.12.0.tar.bz2"
builddir="$srcdir/heldercorreia-speedcrunch-ea93b21f9498"

prepare() {
	cd "$builddir"
	mkdir -p build
}

build() {
	cd "$builddir"/build
	cmake ../src \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-DREBUILD_MANUAL=off
	make
}

check() {
	cd "$builddir"/build
	make test
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="b41f147f2530735af2fad0ecef6047459baed03904ec6d8097a3f21d7d200c2d89beda77676ea1ff762c5c164cd7b639cae84942f61c869acd77aa380c80f141  release-0.12.0.tar.bz2"