summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec9c8f2c64593c885f1b32df2a2aeea48b588601 (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
# Maintainer: AlphaJack <alphajack at tuta dot io>

pkgname="python-mkdocs-jinja2-filters-plugin-git"
pkgver=r2.01f18cb
pkgrel=1
pkgdesc="MkDocs plugin to use custom Jinja2 filters"
url="https://github.com/burnedikt/mkdocs-jinja2-filters-plugin"
license=("MIT")
arch=("any")
provides=("python-mkdocs-jinja2-filters-plugin")
depends=("mkdocs" "python-jinja")
makedepends=("python-setuptools" "git")
source=("git+$url")
sha256sums=("SKIP")
install="plugin.install"

pkgver(){
 cd "mkdocs-jinja2-filters-plugin"
 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build(){
 cd "mkdocs-jinja2-filters-plugin"
 python setup.py build
}

package(){
 cd "mkdocs-jinja2-filters-plugin"
 python setup.py install --root="$pkgdir" --optimize=1
}