From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/texmacs/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 extra/texmacs/PKGBUILD (limited to 'extra/texmacs/PKGBUILD') diff --git a/extra/texmacs/PKGBUILD b/extra/texmacs/PKGBUILD new file mode 100644 index 000000000..96150e9d5 --- /dev/null +++ b/extra/texmacs/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 108863 2011-02-04 14:42:17Z ronald $ +# Maintainer: Ronald van Haren +# Contributor: Damir Perisa + +pkgname=texmacs +pkgver=1.0.7.9 +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') +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) +md5sums=('255d64ebdd900218c091667643f06e44') + +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 + make +} + +package() { + cd ${srcdir}/TeXmacs-${pkgver}-src + make DESTDIR=${pkgdir} install + + # fix fig2ps script + sed -i 's|${prefix}|/usr|' ${pkgdir}/usr/bin/fig2ps +} -- cgit v1.2.3-54-g00ecf