summaryrefslogtreecommitdiff
path: root/wurzel-misc
diff options
context:
space:
mode:
Diffstat (limited to 'wurzel-misc')
-rw-r--r--wurzel-misc/PKGBUILD34
-rw-r--r--wurzel-misc/wurzel-misc19
2 files changed, 53 insertions, 0 deletions
diff --git a/wurzel-misc/PKGBUILD b/wurzel-misc/PKGBUILD
new file mode 100644
index 000000000..3de2d57e3
--- /dev/null
+++ b/wurzel-misc/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Packager: Markus Oehme, <mo at wurzel dot org>
+pkgname=wurzel-misc
+pkgver=0.2
+pkgrel=1
+pkgdesc="Wurzel Dateien fuer LaTeX (diverses)"
+arch=('any')
+url="http://www.wurzel.org"
+license=('GPL')
+groups=('wurzel')
+depends=('bash')
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install='wurzel-misc'
+source=(
+ "http://www.wurzel.org/distfiles/${pkgname}-${pkgver}.tar.bz2"
+)
+sha512sums=('283b9150528ec8604fa49fd8209905741ad1f932727ed9f5d1a2a476d48e03fdfbfce76bd5d9b2289593820f2d9b5a1091edcc49391e1f869a08e3fd960dc6d3')
+
+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}"
+
+}
diff --git a/wurzel-misc/wurzel-misc b/wurzel-misc/wurzel-misc
new file mode 100644
index 000000000..453ee4c97
--- /dev/null
+++ b/wurzel-misc/wurzel-misc
@@ -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 "$@"
+}