summaryrefslogtreecommitdiff
path: root/wurzel-style
diff options
context:
space:
mode:
Diffstat (limited to 'wurzel-style')
-rw-r--r--wurzel-style/PKGBUILD37
-rw-r--r--wurzel-style/wurzel-style19
2 files changed, 56 insertions, 0 deletions
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 <arch at eckner dot net>
+# Packager: Markus Oehme, <mo at wurzel dot org>
+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 "$@"
+}