[arch-commits] Commit in mathomatic/trunk (PKGBUILD)
Kyle Keen
kkeen at archlinux.org
Mon Jan 13 13:17:24 UTC 2020
Date: Monday, January 13, 2020 @ 13:17:24
Author: kkeen
Revision: 552336
upgpkg: mathomatic 16.0.5-7
Modified:
mathomatic/trunk/PKGBUILD
----------+
PKGBUILD | 33 ++++++++++++++++++---------------
1 file changed, 18 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-13 12:44:33 UTC (rev 552335)
+++ PKGBUILD 2020-01-13 13:17:24 UTC (rev 552336)
@@ -4,14 +4,14 @@
pkgname=mathomatic
pkgver=16.0.5
-pkgrel=6
+pkgrel=7
pkgdesc='General purpose Computer Algebra System written in C'
arch=('x86_64')
license=('LGPL')
url="http://mathomatic.orgserve.de/math/"
depends=('readline')
-makedepends=('time')
-optdepends=('python2: for running /usr/share/doc/mathomatic/factorial/factorial'
+makedepends=('time' 'python')
+optdepends=('python: for running /usr/share/doc/mathomatic/factorial/factorial'
'bash: for running a test script'
'm4: for complex operations using the matho script'
'rlwrap: for readline editing'
@@ -20,28 +20,31 @@
source=('https://github.com/Atsutane/mathomatic/raw/master/mathomatic-16.0.5.tar.bz2')
md5sums=('dd04913a98a5073b56f3bc78a01820f3')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ 2to3 -wn examples/factorial primes/{matho-mult,matho-sum,primorial}
+}
+
build() {
- cd "$srcdir"/$pkgname-$pkgver
-
- # python2 fix
- for file in primes/{primorial,matho-sum,matho-mult} examples/factorial; do
- sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
- sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
- done
-
+ cd "$srcdir/$pkgname-$pkgver"
make READLINE=1
- make test
- cd "$srcdir"/$pkgname-$pkgver/primes
+ cd primes
make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
make test
+ cd primes
+ make test
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$srcdir/$pkgname-$pkgver"
make prefix="$pkgdir"/usr m4install
sed -i 's+/build/pkg++' "$pkgdir"/usr/bin/matho
- cd "$srcdir"/$pkgname-$pkgver/primes
+ cd primes
make prefix="$pkgdir"/usr install
sed -i "s+$pkgdir++" "$pkgdir/usr/bin/matho"
}
More information about the arch-commits
mailing list