[arch-commits] Commit in sagetex/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 23:43:54 UTC 2018


    Date: Friday, November 9, 2018 @ 23:43:53
  Author: foutrelis
Revision: 405368

archrelease: copy trunk to community-staging-any

Added:
  sagetex/repos/community-staging-any/
  sagetex/repos/community-staging-any/PKGBUILD
    (from rev 405367, sagetex/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: sagetex/repos/community-staging-any/PKGBUILD (from rev 405367, sagetex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-11-09 23:43:53 UTC (rev 405368)
@@ -0,0 +1,26 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sagetex
+pkgver=3.0
+pkgrel=3
+pkgdesc='Allows to embed code, results of computations, and plots from SageMath into LaTeX documents'
+arch=('any')
+url='https://github.com/dandrake/sagetex'
+license=('GPL2')
+depends=('sagemath' 'texlive-core')
+makedepends=('python2')
+source=("http://mirrors.mit.edu/sage/spkg/upstream/sagetex/$pkgname-$pkgver.tar.gz")
+md5sums=('89f539ac31dd35555eb4f7959280ff89')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+# use python2
+  find -name '*.py' | xargs sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python2 setup.py install --root "$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list