summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2933d02df2afb2cd660baa9bef59a1573206dc49 (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
38
39
40
41
42
43
44
45
46
# Maintainer: Jan Holthuis <holthuis.jan@gmail.com>
pkgname=beamer-theme-rub-git
pkgver=r38.171a625
pkgrel=1
pkgdesc="Beamer theme for the Ruhr-University of Bochum"
arch=(any)
url="https://github.com/sjewo/rub-beamer"
license=('unknown')
depends=('texlive-core')
makedepends=('git')
conflicts=('beamer-theme-rub')
provides=('beamer-theme-rub')
source=("git+https://github.com/sjewo/rub-beamer.git")
install="${pkgname}.install"
optdepends=('rubtexfonts2009: RUB corporate design font support')
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/rub-beamer"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  TEXMFDIST=$(kpsewhich -var-value=TEXMFDIST)
  cd "${srcdir}/rub-beamer/tex/latex/rub-beamer"
  install -d -m755 "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer"

  install -m644 beamercolorthemeRub.sty \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"
  install -m644 beamerfontthemeRub.sty \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"
  install -m644 beamericonarticle.pdf \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"
  install -m644 beamericonbook.pdf \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"
  install -m644 beamerinnerthemeRub.sty \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"
  install -m644 beamerouterthemeRub.sty \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"
  install -m644 beamerthemeRub.sty \
          "${pkgdir}/${TEXMFDIST}/tex/latex/rub-beamer/"

  mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
  install -m644 "${srcdir}/rub-beamer/README.md" \
          "${pkgdir}/usr/share/doc/${pkgname}/"
}