diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | texlive-europecv/PKGBUILD | 16 | ||||
-rwxr-xr-x | texlive-europecv/watch | 21 |
3 files changed, 38 insertions, 0 deletions
@@ -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 + |