summaryrefslogtreecommitdiff
path: root/wurzel-xml
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-07-21 13:03:32 +0200
committerErich Eckner <git@eckner.net>2016-07-21 13:06:34 +0200
commit72022b026c3e7d1bbab4052077d3c276d6604139 (patch)
treed87d50a248e4742c8559fa0e389d0ad38da1bd59 /wurzel-xml
parent0f02cb32887aef881d0fe55435e2733c2a99309a (diff)
downloadarchlinuxewe.git.save-72022b026c3e7d1bbab4052077d3c276d6604139.tar.xz
Wurzelklasse neu
Diffstat (limited to 'wurzel-xml')
-rw-r--r--wurzel-xml/PKGBUILD35
-rw-r--r--wurzel-xml/wurzel-xml19
2 files changed, 54 insertions, 0 deletions
diff --git a/wurzel-xml/PKGBUILD b/wurzel-xml/PKGBUILD
new file mode 100644
index 00000000..e96c7e25
--- /dev/null
+++ b/wurzel-xml/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Packager: Markus Oehme, <mo at wurzel dot org>
+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 00000000..453ee4c9
--- /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 "$@"
+}