aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--texlive-europecv/PKGBUILD16
-rwxr-xr-xtexlive-europecv/watch21
3 files changed, 38 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e2bd982..d57970e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,6 +27,7 @@ release
*.txt
*.sty
*-pkgbuild
+unfetchable
/perl-file-tail/file-tail
/texlive-flashcards/flashcards
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
+