[arch-commits] Commit in mathomatic/repos (4 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Nov 6 19:52:45 UTC 2016


    Date: Sunday, November 6, 2016 @ 19:52:44
  Author: bpiotrowski
Revision: 194755

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  mathomatic/repos/community-staging-i686/
  mathomatic/repos/community-staging-i686/PKGBUILD
    (from rev 194754, mathomatic/trunk/PKGBUILD)
  mathomatic/repos/community-staging-x86_64/
  mathomatic/repos/community-staging-x86_64/PKGBUILD
    (from rev 194754, mathomatic/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   50 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Copied: mathomatic/repos/community-staging-i686/PKGBUILD (from rev 194754, mathomatic/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-11-06 19:52:44 UTC (rev 194755)
@@ -0,0 +1,50 @@
+# $Id$
+# 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=4
+pkgdesc='General purpose Computer Algebra System written in C'
+arch=('i686' '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-staging-x86_64/PKGBUILD (from rev 194754, mathomatic/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-11-06 19:52:44 UTC (rev 194755)
@@ -0,0 +1,50 @@
+# $Id$
+# 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=4
+pkgdesc='General purpose Computer Algebra System written in C'
+arch=('i686' '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:



More information about the arch-commits mailing list