mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 15:44:38 +08:00
29 lines
715 B
Bash
29 lines
715 B
Bash
# $Id$
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
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
|
|
}
|