summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 972de0da1264ef0b421b5cfa934407ff9b30614b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: fclad <fcladera at fcladera.com>

_pkgname=moderncv
pkgname=texlive-moderncv-git
pkgver=v2.0.0.r10.g2033517
pkgrel=2
pkgdesc=" A modern curriculum vitae class for LaTeX"
arch=('any')
url="https://github.com/xdanaux/moderncv"
license=('The LaTeX Project Public LiĀ­cense, version 1.3c')
depends=('texlive-core' 'texlive-latexextra' 'texlive-fontsextra' 'fontawesome.sty')
makedepends=('git')
conflicts=('texlive-moderncv')
provides=('texlive-moderncv')
# I use my personal repo until xdanaux adds a tag in his repo
source=("git+https://github.com/xdanaux/moderncv.git")
md5sums=('SKIP')

prepare() {
    cd "$srcdir/$_pkgname"
    sed -i "/l3regex/d" moderncv.cls
}

pkgver() {
    cd "$srcdir/$_pkgname"
    git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$_pkgname"
  # Install only cls and sty files
  install -Dm644 moderncv.cls $pkgdir/usr/share/texmf/tex/latex/moderncv/moderncv.cls
  for file in $(ls *.sty); do
    install -m644 $file $pkgdir/usr/share/texmf/tex/latex/moderncv/$file
  done
}