PKGBUILDs/extra/texmacs/PKGBUILD

58 lines
1.9 KiB
Bash
Raw Normal View History

2018-03-18 22:29:12 +00:00
# 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 size_t check on ARM
pkgname=texmacs
2020-08-03 13:46:15 +00:00
pkgver=1.99.13
pkgrel=1
2018-03-18 22:29:12 +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=('x86_64')
url="http://www.texmacs.org/"
license=('GPL')
2020-08-03 13:46:15 +00:00
depends=('perl' 'guile1.8' 'texlive-core' 'python' 'libxext' 'freetype2' 'qt5-base')
2018-03-18 22:29:12 +00:00
# do not remove texlive-core dependency, as it is needed!
optdepends=('transfig: convert images using fig2ps'
'gawk: conversion of some files'
'ghostscript: rendering ps files'
'imagemagick: convert images'
'aspell: spell checking')
makedepends=('ghostscript' 'cmake')
source=(http://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${pkgver}-src.tar.gz
2020-08-03 13:46:15 +00:00
texmacs-qt-5.15.patch
2018-03-18 22:29:12 +00:00
fix-size_t-check.patch)
options=('!emptydirs')
2020-08-03 13:46:15 +00:00
sha256sums=('02ad1c4b8ed0aa61501de97146300d7899605c25da827611ca4a40abbc07a9b4'
'0e8555ce855977858565c7eedd415a22e640eea0f1ce69adce1be0396542200d'
2019-06-30 15:18:47 +00:00
'09de18741b6a3b8590e76be52c571b2799b906cc3ecdd0eb6594c2ffdef3ad83')
2018-03-18 22:29:12 +00:00
prepare() {
2020-08-03 13:46:15 +00:00
cd TeXmacs-${pkgver}
2018-03-18 22:29:12 +00:00
2020-08-03 13:46:15 +00:00
patch -p1 -i ../texmacs-qt-5.15.patch # Fix build with Qt 5.15
2018-03-18 22:29:12 +00:00
patch -p1 -i ../fix-size_t-check.patch
}
build() {
2020-08-03 13:46:15 +00:00
cd TeXmacs-${pkgver}
2018-03-18 22:29:12 +00:00
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGUILECONFIG_EXECUTABLE=/usr/bin/guile-config1.8
make
}
package() {
2020-08-03 13:46:15 +00:00
cd TeXmacs-${pkgver}/build
2018-03-18 22:29:12 +00:00
make DESTDIR=${pkgdir} install
# fix fig2ps script
sed -i 's|${prefix}|/usr|' "${pkgdir}/usr/bin/fig2ps"
# fix launch script
sed -e 's|\@CONFIG_LIB_PATH\@|LD_LIBRARY_PATH|g' -i "$pkgdir"/usr/bin/texmacs
}