From 72022b026c3e7d1bbab4052077d3c276d6604139 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 21 Jul 2016 13:03:32 +0200 Subject: Wurzelklasse neu --- wurzel-style/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ wurzel-style/wurzel-style | 19 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 wurzel-style/PKGBUILD create mode 100644 wurzel-style/wurzel-style (limited to 'wurzel-style') diff --git a/wurzel-style/PKGBUILD b/wurzel-style/PKGBUILD new file mode 100644 index 000000000..03595f977 --- /dev/null +++ b/wurzel-style/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Erich Eckner +# Packager: Markus Oehme, +pkgname=wurzel-style +pkgver=2008.4 +pkgrel=1 +pkgdesc="Wurzel Klasse fuer LaTeX" +arch=('any') +url="http://www.wurzel.org" +license=('GPL') +groups=('wurzel') +depends=('bash') +makedepends=() +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install='wurzel-style' +source=( + "http://www.wurzel.org/distfiles/${pkgname}-${pkgver}.tar.bz2" +) +sha512sums=('ae198295ed76ef97d3f6a2355482c2e968b967ce25e552a22adbc5fc3e7d21c3004c8223b459dcbd8098956d9b35dd7c057d8a8a7a6962c4d99117ca05c72718') + +package() { + + TEXMFLOCAL="/usr/share/texmf" + cd "${pkgname}-${pkgver}" + mkdir -p "${pkgdir}/${TEXMFLOCAL}" + cp -R "tex-files/doc" "${pkgdir}/${TEXMFLOCAL}" + cp -R "tex-files/tex" "${pkgdir}/${TEXMFLOCAL}" + cp -R "tex-files/metapost" "${pkgdir}/${TEXMFLOCAL}" + install -D -m755 -t "${pkgdir}/usr/bin" "bin/wzlclean" "bin/wzldoublepdf" "bin/wzlfinalpdf" "bin/wzlimagetopdf" + install -D -m644 -t "${pkgdir}/usr/share/doc/wurzel/style/" "doc/README" "doc/changelog" + +} diff --git a/wurzel-style/wurzel-style b/wurzel-style/wurzel-style new file mode 100644 index 000000000..453ee4c97 --- /dev/null +++ b/wurzel-style/wurzel-style @@ -0,0 +1,19 @@ +#!/bin/sh + +_refresh() { + TEXMFLOCAL="$(texconfig conf | grep TEXMFLOCAL | cut -f2 -d'=' | sed 's|^.*:||')" + echo "Rebuilding tex filename database" + texhash --quiet "${TEXMFLOCAL}" +} + +post_install() { + _refresh "$@" +} + +post_upgrade() { + _refresh "$@" +} + +post_remove() { + _refresh "$@" +} -- cgit v1.2.3-70-g09d2