summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e27a2c09de45c0033bba1d33345c4730e8a2f9a (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
# 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://github.com/bbatsov/beamer-torino-theme.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir"/beamer-torino-theme
	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/"
}