summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f2c109616808faa51b6415db3cb60313a49a379 (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
# Maintainer: keutain <quentin do aniere at gmai dot com>

pkgname=utc-latex-beamer
_latexpkgname=utc-beamer
pkgver=1.1.2
pkgrel=1
pkgdesc="UTC LaTeX beamer template"
url="https://github.com/qaniere/utc-latex"
arch=("any")
license=("WTFPL")
depends=("texlive-basic")
source=("$pkgname-$pkgver.tar.gz::https://github.com/qaniere/utc-latex/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('f8d38ae41bef018e1cc9ff2d6d5c2272b7c57b4abc09d7ea09a237025cf3a674')

package() {
    # Get the proper installation path
    TEXMFDIST=$(kpsewhich -var-value=TEXMFDIST)

    # Install the files to the correct path
    mkdir -m 755 -p  "${pkgdir}/${TEXMFDIST}/tex/latex/${_latexpkgname}"
    install -Dm644 "${srcdir}/utc-latex-${pkgver}/${_latexpkgname}"/* -t "${pkgdir}/${TEXMFDIST}/tex/latex/${_latexpkgname}"

    # Install the license
    mkdir -m 755 -p ${pkgdir}/usr/share/licenses/utc-latex/
    install -m 644 "${srcdir}/utc-latex-${pkgver}/licenses/${_latexpkgname}.txt" -t "${pkgdir}/usr/share/licenses/utc-latex/"
}