summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 543a3a578c54be066b4a6e7f900e451836cc3290 (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
# Maintainer: SiƓn le Roux <sinisterstuf@gmail.com>
# Please submit issues, patches or merge-requests at:
# https://github.com/sinisterstuf/PKGBUILD-beamercolorthemesolarized

pkgname=beamercolorthemesolarized
pkgver=r43.3d95d47 # this is generated by pkgver() below
pkgrel=1
pkgdesc="Beamer color theme using the Solarized palette"
arch=('any')
url="https://github.com/jrnold/beamercolorthemesolarized"
license=('GPL')
depends=('texlive-core')
makedepends=('git')
source=('git+https://github.com/jrnold/beamercolorthemesolarized.git')
install=$pkgname.install
md5sums=('SKIP')

pkgver() {
  # Git, no tags available
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  local latexdist='usr/share/texmf-dist/tex/latex/beamer/themes/color'
  local themefile=${pkgname%-git}/${pkgname%-git}.sty

  install -Dm644 -t$pkgdir/$latexdist $srcdir/$themefile
}

# vim:set ts=2 sw=2 et: