[arch-commits] Commit in mathomatic/repos/community-x86_64 (PKGBUILD PKGBUILD)

Kyle Keen kkeen at archlinux.org
Mon Jan 13 13:18:31 UTC 2020


    Date: Monday, January 13, 2020 @ 13:18:30
  Author: kkeen
Revision: 552337

archrelease: copy trunk to community-x86_64

Added:
  mathomatic/repos/community-x86_64/PKGBUILD
    (from rev 552336, mathomatic/trunk/PKGBUILD)
Deleted:
  mathomatic/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  101 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 52 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-13 13:17:24 UTC (rev 552336)
+++ PKGBUILD	2020-01-13 13:18:30 UTC (rev 552337)
@@ -1,49 +0,0 @@
-# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
-# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Maintainer:  Thorsten Töpper <atsutane-tu at freethoughts.de>
-
-pkgname=mathomatic
-pkgver=16.0.5
-pkgrel=6
-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'
-            'bash: for running a test script'
-            'm4: for complex operations using the matho script'
-            'rlwrap: for readline editing'
-            'gnuplot: for plotting')
-# The original author is dead and the projects site no longer exists. Uploaded a backup copy.
-source=('https://github.com/Atsutane/mathomatic/raw/master/mathomatic-16.0.5.tar.bz2')
-md5sums=('dd04913a98a5073b56f3bc78a01820f3')
-
-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
-
-  make READLINE=1
-  make test
-  cd "$srcdir"/$pkgname-$pkgver/primes
-  make
-  make test
-}
-
-package() {
-  cd "$srcdir"/$pkgname-$pkgver
-  make prefix="$pkgdir"/usr m4install
-  sed -i 's+/build/pkg++' "$pkgdir"/usr/bin/matho
-
-  cd "$srcdir"/$pkgname-$pkgver/primes
-  make prefix="$pkgdir"/usr install
-  sed -i "s+$pkgdir++" "$pkgdir/usr/bin/matho"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: mathomatic/repos/community-x86_64/PKGBUILD (from rev 552336, mathomatic/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-01-13 13:18:30 UTC (rev 552337)
@@ -0,0 +1,52 @@
+# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Maintainer:  Thorsten Töpper <atsutane-tu at freethoughts.de>
+
+pkgname=mathomatic
+pkgver=16.0.5
+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' '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'
+            'gnuplot: for plotting')
+# The original author is dead and the projects site no longer exists. Uploaded a backup copy.
+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"
+  make READLINE=1
+  cd primes
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make test
+  cd primes
+  make test
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make prefix="$pkgdir"/usr m4install
+  sed -i 's+/build/pkg++' "$pkgdir"/usr/bin/matho
+
+  cd primes
+  make prefix="$pkgdir"/usr install
+  sed -i "s+$pkgdir++" "$pkgdir/usr/bin/matho"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list