diff options
Diffstat (limited to 'unmaintained/mathomatic/APKBUILD')
-rw-r--r-- | unmaintained/mathomatic/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/mathomatic/APKBUILD b/unmaintained/mathomatic/APKBUILD new file mode 100644 index 0000000000..7a3ae6050a --- /dev/null +++ b/unmaintained/mathomatic/APKBUILD @@ -0,0 +1,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" |