# $Id$ # Maintainer: Antonio Rojas pkgname=sagetex pkgver=2.3.4 pkgrel=1 pkgdesc='Allows to embed code, results of computations, and plots from Sage into LaTeX documents' arch=('any') url='http://www.sagemath.org' license=('GPL2') depends=('sage-mathematics' 'texlive-core') makedepends=('python2') source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2") install=$pkgname.install md5sums=('55d2293116a391631daaf7847e618646') 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 }