aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/mathomatic/APKBUILD
blob: 7a3ae6050af3e1d726b1647e8ef3a3a890a5430a (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
41
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=mathomatic
pkgver=16.0.5
pkgrel=0
pkgdesc="A software computer algebra system (CAS)"
url="http://www.mathomatic.org/math/"
arch="all"
license="LGPL2+"
depends="m4"
depends_dev="readline-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://mathomatic.orgserve.de/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$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 -f makefile READLINE=1 CC_OPTIMIZE="$CFLAGS" prefix="/usr" || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix="/usr" m4install-degrees || return 1
}


md5sums="dd04913a98a5073b56f3bc78a01820f3  mathomatic-16.0.5.tar.bz2"
sha256sums="976e6fed1014586bcd584e417c074fa86e4ca6a0fcc2950254da2efde99084ca  mathomatic-16.0.5.tar.bz2"
sha512sums="c44c60183442226562df9eefb1d77e5bafd96b7a5d3ad34a76963c586d398647366e782c75ffcf27c2b7d9d4be56678bbbc4d37ac71687a39f04b3fef450cc73  mathomatic-16.0.5.tar.bz2"