PKGBUILDs/extra/texmacs/PKGBUILD

69 lines
2.4 KiB
Bash
Raw Normal View History

2014-02-03 22:04:34 +00:00
# $Id$
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch> # Contributor: Christopher Reimer <c.reimer1993@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix qreal usage
pkgname=texmacs
2016-03-14 23:15:05 +00:00
pkgver=1.99.4
2016-05-14 22:02:10 +00:00
pkgrel=2
2014-02-03 22:04:34 +00:00
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' 'guile1.8' 'texlive-core' 'python2' 'libxext' 'freetype2' 'shared-mime-info'
'desktop-file-utils' 'qt4')
# do not remove texlive-core dependency, as it is needed!
optdepends=('transfig: convert images using fig2ps'
2015-12-10 06:04:11 +00:00
'gawk: conversion of some files'
'ghostscript: rendering ps files'
'imagemagick: convert images'
'aspell: spell checking')
2014-02-03 22:04:34 +00:00
makedepends=('ghostscript')
2014-02-03 22:22:31 +00:00
source=(http://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${pkgver}-src.tar.gz
2014-02-03 22:04:34 +00:00
arm.patch)
options=('!emptydirs')
2016-03-14 23:15:05 +00:00
sha1sums=('77a3d292934ebb288c7f8cb77e15f168012bbf4c'
2014-02-03 22:04:34 +00:00
'3c431d63360da065b4021df04ed052ee6b18b8ae')
2014-07-30 12:16:31 +00:00
prepare() {
cd "${srcdir}/TeXmacs-${pkgver}-src"
2014-02-03 22:04:34 +00:00
patch -p1 -i ../arm.patch
sed -i 's/env python/env python2/' \
plugins/{mathematica/bin/realpath.py,python/bin/tm_python,sage/bin/tm_sage} \
2014-08-25 20:20:40 +00:00
TeXmacs/misc/inkscape_extension/texmacs_reedit.py
2014-02-03 22:04:34 +00:00
sed -i 's/"python"/"python2"/' plugins/python/progs/init-python.scm
sed -i '/^LDPATH/d' src/makefile.in
2016-03-14 23:15:05 +00:00
sed -i -e 's/guile18 /guile1.8 /g' \
-e 's/guile18-config/guile-config1.8/g' \
2014-02-03 22:04:34 +00:00
configure
2016-03-14 23:15:05 +00:00
sed -i -e 's|#include <libguile18.h>|#include <guile/gh.h>|g' src/Scheme/Guile/guile_tm.hpp
2014-02-03 22:04:34 +00:00
# Don't generate icon-cache and mime-database (namcap tells that they should not be in a package)
sed -i '/update-mime-database/d' Makefile.in
sed -i '/gtk-update-icon-cache/d' Makefile.in
sed -i '\/icons\/gnome 2>\/dev\/null/d' Makefile.in
2014-07-30 12:16:31 +00:00
}
2014-02-03 22:04:34 +00:00
2014-07-30 12:16:31 +00:00
build() {
cd "${srcdir}/TeXmacs-${pkgver}-src"
2014-02-03 22:04:34 +00:00
export QMAKE=qmake-qt4
export MOC=moc-qt4
export UIC=uic-qt4
2015-12-10 06:04:11 +00:00
export LDFLAGS="$LDFLAGS -lz"
2014-02-03 22:04:34 +00:00
./configure --prefix=/usr \
--mandir=/usr/share/man \
--libexecdir=/usr/lib
make
}
package() {
2014-07-30 12:16:31 +00:00
cd "${srcdir}/TeXmacs-${pkgver}-src"
2014-02-03 22:04:34 +00:00
make DESTDIR=${pkgdir} install
# fix fig2ps script
2014-07-30 12:16:31 +00:00
sed -i 's|${prefix}|/usr|' "${pkgdir}/usr/bin/fig2ps"
2014-02-03 22:04:34 +00:00
}