blob: e5cb417f7a0b652d831c97d71c8629752d39e61a (
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
|
# Maintainer: Frank Seifferth <frankseifferth@posteo.net>
pkgname=pandoc-static-katex-git
provides=('pandoc-static-katex')
pkgver=latest
pkgrel=2
pkgdesc="A simple pandoc filter that uses KaTeX to render math equations at build time."
license=('MIT')
arch=('any')
url="https://github.com/Zaharid/pandoc_static_katex"
depends=('python-pandocfilters' 'python>=3.7' 'katex')
makedepends=('git')
source=("$pkgname::git+https://github.com/Zaharid/pandoc_static_katex")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
install -D -m 755 \
"$srcdir/$pkgname/pandoc_static_katex.py" \
"$pkgdir/usr/bin/pandoc-static-katex"
install -D -m 644 \
"$srcdir/$pkgname/LICENSE" \
"$pkgdir/usr/share/licenses/pandoc-static-katex/LICENSE"
}
|