summaryrefslogtreecommitdiffstats
path: root/testing/mathomatic/APKBUILD
blob: 01f36612e6eed3ecd23c42d45866933388435208 (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
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=mathomatic
pkgver=15.7.1
pkgrel=0
pkgdesc="free software computer algebra system (CAS)"
url="http://www.mathomatic.org/math/"
arch="all"
license="LGPL"
depends="m4"
depends_dev="readline-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://mathomatic.org/mathomatic-$pkgver.tar.bz2
	busybox.patch"

_builddir="$srcdir"/mathomatic-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make READLINE=1 CC_OPTIMIZE="$CFLAGS" prefix="/usr"
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix="/usr" m4install
}

md5sums="f8144e9c17edf688cbb296d20efaf808  mathomatic-15.7.1.tar.bz2
c8e6c51e094625c3912cbcf8f2bb21e8  busybox.patch"