aboutsummaryrefslogtreecommitdiffstats
path: root/texlive-europecv
diff options
context:
space:
mode:
Diffstat (limited to 'texlive-europecv')
-rw-r--r--texlive-europecv/PKGBUILD16
-rwxr-xr-xtexlive-europecv/watch21
2 files changed, 37 insertions, 0 deletions
diff --git a/texlive-europecv/PKGBUILD b/texlive-europecv/PKGBUILD
new file mode 100644
index 0000000..23e0604
--- /dev/null
+++ b/texlive-europecv/PKGBUILD
@@ -0,0 +1,16 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+pkgname=texlive-europecv
+pkgver=1
+pkgrel=1
+pkgdesc='Unofficial class for European curricula vitæ'
+arch=('any')
+url='http://www.ctan.org/tex-archive/macros/latex/contrib/europecv/'
+license=('GPL')
+depends=('texlive-latexextra')
+source=("europecv-${pkgver}.zip"::"http://mirror.ctan.org/macros/latex/contrib/europecv.zip")
+md5sums=('502654da6a5b5159e1e1f58cd792d327')
+
+package() {
+ install -d "$pkgdir"/usr/share/texmf/tex/latex
+ cp -r europecv "$pkgdir"/usr/share/texmf/tex/latex
+}
diff --git a/texlive-europecv/watch b/texlive-europecv/watch
new file mode 100755
index 0000000..51ec975
--- /dev/null
+++ b/texlive-europecv/watch
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+[ -f europecv.release ] && rm europecv.release
+
+wget 'http://mirror.ctan.org/macros/latex/contrib/europecv.zip' -O europecv.release >/dev/null 2>/dev/null
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum europecv.release > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'texlive-europecv'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'texlive-europecv (unfetchable)'
+fi
+