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-xml/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ wurzel-xml/wurzel-xml | 19 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 wurzel-xml/PKGBUILD create mode 100644 wurzel-xml/wurzel-xml (limited to 'wurzel-xml') diff --git a/wurzel-xml/PKGBUILD b/wurzel-xml/PKGBUILD new file mode 100644 index 000000000..e96c7e25b --- /dev/null +++ b/wurzel-xml/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Erich Eckner +# Packager: Markus Oehme, +pkgname=wurzel-xml +pkgver=0.1 +pkgrel=1 +pkgdesc="Wurzel Interface fuer XML 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-xml' +source=( + "http://www.wurzel.org/distfiles/${pkgname}-${pkgver}.tar.bz2" +) +sha512sums=('6466c390f1af5464b12ddedb1979aab4c99387461b79464344a8b55614ca86c437303e22a0051619324a880098e1b5d4319e1e226480c50be2cdbb409704126e') + +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}" + install -D -m644 -t "${pkgdir}/usr/share/doc/wurzel/xml/" "doc/changes" + +} diff --git a/wurzel-xml/wurzel-xml b/wurzel-xml/wurzel-xml new file mode 100644 index 000000000..453ee4c97 --- /dev/null +++ b/wurzel-xml/wurzel-xml @@ -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