summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aaa99df85759def6de5155dca563f0768ca5f4ab (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
# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com >

pkgname=beamer-theme-torino-git
pkgver=r3.d664ecb
pkgrel=1
pkgdesc="A pretty theme for LaTeX Beamer"
arch=(any)
url="https://github.com/bbatsov/beamer-torino-theme"
license=('unknown')
depends=('texlive-core')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="${pkgname}.install"
source=('git+https://github.com/bbatsov/beamer-torino-theme.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/beamer-torino-theme
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd "$srcdir"/beamer-torino-theme
  mkdir -p $pkgdir/usr/share/texmf-dist/tex/latex/beamer/themes/{color,inner,outer,theme}

  install -m644 themes/color/* \
    "$pkgdir/usr/share/texmf-dist/tex/latex/beamer/themes/color/"

  install -m644 themes/inner/beamerinnerthemefancy.sty \
    "$pkgdir/usr/share/texmf-dist/tex/latex/beamer/themes/inner/"

  install -m644 themes/outer/beamerouterthemedecolines.sty \
    "$pkgdir/usr/share/texmf-dist/tex/latex/beamer/themes/outer/"

  install -m644 themes/theme/beamerthemeTorino.sty \
    "$pkgdir/usr/share/texmf-dist/tex/latex/beamer/themes/theme/"
}