summaryrefslogtreecommitdiff
path: root/user/free42/APKBUILD
blob: ba8814388b25fd4111d063c75a735bb681a7b899 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=free42
pkgver=2.0.22
pkgrel=1
pkgdesc="Scientific programmable calculator"
url="http://thomasokken.com/free42/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only AND Public-Domain"
depends=""
makedepends="alsa-lib-dev gtk+2.0-dev libx11-dev libxmu-dev"
subpackages=""
source="https://distfiles.adelielinux.org/source/free42-nologo-$pkgver.tgz
	free42.desktop
	libx11.patch
	patch.patch
	"
builddir="$srcdir/free42-nologo-$pkgver/gtk"

build() {
	cd "$builddir"
	local SAVE_CFLAGS
	SAVE_CFLAGS=$CFLAGS
	unset CFLAGS
	CC="gcc -D_WCHAR_T" ./build-intel-lib.sh
	CFLAGS=$SAVE_CFLAGS
	make BCD_MATH=1 AUDIO_ALSA=1
}

package() {
	cd "$builddir"
	install -D -m755 free42dec "$pkgdir"/usr/bin/free42dec
	install -D -m644 "$srcdir"/free42.desktop \
		"$pkgdir"/usr/share/applications/free42.desktop
}

sha512sums="865e8cce86a882aba10e7e756308e195a6675f0b6db4b881e7b7df67de95f5169ca801005e25dd0e61a70a5a0cd6a374b0cf58003251cdc9dc526a2506e18e1d  free42-nologo-2.0.22.tgz
f52700d234719f4ee7cdd369fc5f28ade190ff77ed1a824cd2cdaeef62419700de3d85a28fd6ae378f904e018813dc4145ca4cc9f2669fdf50f3e13baa7ec634  free42.desktop
f8434fd1c20f0dd40de5773615eaf798329870231f7ce66785a1bc8e208fa0a64919f48ac3eea5ab9ceb818570ae93f61b0e81baec4261bbdfbf04237108ab6a  libx11.patch
7b48609bff5466d81f42ed65405cd09e98fa675c087837b22caebab2b97420a34d1156399c3b18608bcae42896c12aa63a6f87515f5677587dfff6ed135dc760  patch.patch"