summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-02-24 11:50:34 +0300
committerCaleb Maclennan2020-02-24 11:50:34 +0300
commit412f82d5700c4e5e74cbdb858d784c863162dcfe (patch)
tree3010e3a7334f013bc08b39c565da1e0134580a72
parent4c69ac99c167df4dfeb5973307fd322eaa464ce6 (diff)
downloadaur-412f82d5700c4e5e74cbdb858d784c863162dcfe.tar.gz
Add build check step, match <name>-git package
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD14
2 files changed, 12 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b1653ac4f8f..7aa4995e7db 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = python-panflute
pkgdesc = A Pythonic alternative to John MacFarlane’s pandocfilters
pkgver = 1.12.5
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/sergiocorreia/panflute
arch = any
license = BSD
+ checkdepends = python-pandocfilters
makedepends = python-setuptools
+ depends = pandoc
depends = python
depends = python-click
depends = python-shutilwhich
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