diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 4 deletions
@@ -1,10 +1,11 @@ pkgbase = python2-simplejson pkgdesc = Simple, fast, extensible JSON encoder/decoder for python2 pkgver = 3.17.6 - pkgrel = 4 + pkgrel = 5 url = https://github.com/simplejson/simplejson arch = any license = MIT + checkdepends = python2-pytest-runner makedepends = python2-setuptools depends = python2 source = https://github.com/simplejson/simplejson/archive/refs/tags/v3.17.6.tar.gz @@ -7,13 +7,14 @@ _base=simplejson pkgname=python2-${_base} pkgver=3.17.6 -pkgrel=4 +pkgrel=5 pkgdesc="Simple, fast, extensible JSON encoder/decoder for python2" license=('MIT') arch=('any') url="https://github.com/${_base}/${_base}" -depends=(python2) -makedepends=(python2-setuptools) +depends=('python2') +makedepends=('python2-setuptools') +checkdepends=('python2-pytest-runner') source=(${url}/archive/refs/tags/v${pkgver}.tar.gz) sha256sums=('5522f3113924325499f15cd8a3fe47a42dfa127a6b76c1921b51cf3c3f2a6aa6') @@ -22,6 +23,11 @@ build() { python2 setup.py build } +check() { + cd "${_base}-${pkgver}" + python2 setup.py pytest +} + package() { cd "${_base}-${pkgver}" python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build |