diff options
author | Ainola | 2018-11-07 05:58:54 -0700 |
---|---|---|
committer | Ainola | 2018-11-07 05:58:54 -0700 |
commit | 865822e0e492cc354285b5e4154ca7685f69cd0a (patch) | |
tree | 9c436fd1d62efe20e193ba79885abe28788ab481 /PKGBUILD | |
parent | cd92e697d18e784de7cc370abefb9bce94545baa (diff) | |
download | aur-865822e0e492cc354285b5e4154ca7685f69cd0a.tar.gz |
add tests, depends
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,7 +3,7 @@ pkgbase=python-oath pkgname=('python-oath' 'python2-oath') pkgver=1.4.0 -pkgrel=6 +pkgrel=7 pkgdesc="Python implementation of HOTP, TOTP and OCRA algorithms from OATH." arch=('any') url="https://github.com/bdauvergne/python-oath" @@ -21,7 +21,13 @@ build() { cd "../python-oath-$pkgver-py2" && python2 setup.py build } +check() { + cd "python-oath-$pkgver" && python setup.py test + cd "../python-oath-$pkgver-py2" && python2 setup.py test +} + package_python-oath() { + depends=('python') cd "python-oath-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" @@ -29,6 +35,7 @@ package_python-oath() { } package_python2-oath() { + depends=('python2') cd "python-oath-$pkgver-py2" python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" |