summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef28147164a1636833b38c839fc8341acc75bc44 (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
# Maintainer: Gabriele Fulgaro <gabriele.fulgaro@gmail.com>

pkgname=plantuml-markdown
pkgver=3.4.2
pkgrel=1
pkgdesc="PlantUML plugin for Python-Markdown"
arch=('any')
url="https://github.com/mikitex70/${pkgname}"
license=('BSD')
depends=('python-markdown' 'plantuml' 'python-plantuml-git')
makedepends=('python-setuptools')
checkdepends=('pymdown-extensions' 'python-mock' 'python-nose2')
changelog="CHANGELOG.md"	# https://raw.githubusercontent.com/mikitex70/plantuml-markdown/master/CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::${url}/archive/${pkgver}.tar.gz")
md5sums=('7fbbe263f1e1cc3628237dc37e90b0cf')

build() {
	cd "$pkgname-$pkgver"
	python setup.py build
}

check() {
	cd "$pkgname-$pkgver"
	PATH="$PATH:$PWD/test" python -m unittest discover -v -s test
}

package() {
	cd "$pkgname-$pkgver"
	python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}