diff options
Diffstat (limited to 'extra/texmacs/PKGBUILD')
-rw-r--r-- | extra/texmacs/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/texmacs/PKGBUILD b/extra/texmacs/PKGBUILD new file mode 100644 index 000000000..cbd773d3f --- /dev/null +++ b/extra/texmacs/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 141258 2011-10-27 15:06:09Z ronald $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Damir Perisa <damir.perisa@bluewin.ch> + +pkgname=texmacs +pkgver=1.0.7.14 +pkgrel=1 +pkgdesc="Free scientific text editor, inspired by TeX and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt, Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one." +arch=('i686' 'x86_64' 'mips64el') +url="http://www.texmacs.org/" +license=('GPL') +depends=('perl' 'guile' 'texlive-core' 'python2' 'libxext' 'freetype2') +# do not remove texlive-core dependency, as it is needed! +optdepends=('transfig: convert images using fig2ps') +#source=(ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-${pkgver}-src.tar.gz) +source=(http://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${pkgver}-src.tar.gz) +sha1sums=('5bbe0458d2ab73fa8cea8e12fee788b17b6f279a') + +build() { + cd ${srcdir}/TeXmacs-${pkgver}-src + sed -i 's/env python/env python2/' \ + plugins/{mathematica/bin/realpath.py,python/bin/tm_python,sage/bin/tm_sage} + sed -i 's/"python"/"python2"/' plugins/python/progs/init-python.scm + sed -i '/^LDPATH/d' src/makefile.in + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --libexecdir=/usr/lib \ + --disable-qt + make +} + +package() { + cd ${srcdir}/TeXmacs-${pkgver}-src + make DESTDIR=${pkgdir} install + + # fix fig2ps script + sed -i 's|${prefix}|/usr|' ${pkgdir}/usr/bin/fig2ps +} |