summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2020-02-24 11:50:34 +0300
committerCaleb Maclennan2020-02-24 11:50:34 +0300
commit412f82d5700c4e5e74cbdb858d784c863162dcfe (patch)
tree3010e3a7334f013bc08b39c565da1e0134580a72 /PKGBUILD
parent4c69ac99c167df4dfeb5973307fd322eaa464ce6 (diff)
downloadaur-412f82d5700c4e5e74cbdb858d784c863162dcfe.tar.gz
Add build check step, match <name>-git package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a5a6e855924..6dbeb1f6d33 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,21 @@
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Mantainer: Michael M. Tung <mtung at mat dot upv dot es>
-# PKGBUILD generated by pipman
-# Python package author: Sergio Correia <sergio.correia@gmail.com>
_pipname=panflute
pkgname=python-$_pipname
pkgver=1.12.5
-pkgrel=2
+pkgrel=3
pkgdesc='A Pythonic alternative to John MacFarlane’s pandocfilters'
-arch=('any')
url="https://github.com/sergiocorreia/$_pipname"
+arch=('any')
license=('BSD')
_pydeps=('click'
'shutilwhich'
'yaml')
-depends=('python' "${_pydeps[@]/#/python-}")
+depends=('pandoc' 'python' "${_pydeps[@]/#/python-}")
makedepends=('python-setuptools')
replaces=('pandoc-panflute')
+checkdepends=('python-pandocfilters')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sergiocorreia/$_pipname/archive/$pkgver.tar.gz")
sha256sums=('ee62188825f7623eb348e15d2183c6ee51e28cf3f0c87c851e6f09ad7288f78d')
@@ -25,6 +24,11 @@ build() {
python setup.py build
}
+check() {
+ cd "$_pipname-$pkgver"
+ python setup.py test
+}
+
package() {
cd "$_pipname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build