diff options
author | Chih-Hsuan Yen | 2018-07-10 17:01:17 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2018-07-10 17:01:17 +0800 |
commit | b724bff4e8ba19917b4e5907226ae13fb34e32a8 (patch) | |
tree | e566b9952421304bcc86dcd9bc1731a99cf3fdd9 | |
parent | 46147432cc72bc0a5da70cbea07f26deee34c03d (diff) | |
download | aur-b724bff4e8ba19917b4e5907226ae13fb34e32a8.tar.gz |
add check()
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 6 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Tue Jun 14 04:18:34 UTC 2016 pkgbase = python-hashpumpy-git pkgdesc = A tool to exploit the hash length extension attack in various hashing algorithms - pkgver = v1.2.0.r4.g2d01d3b - pkgrel = 1 + pkgver = v1.2.0.r8.g314268e + pkgrel = 2 url = https://github.com/bwall/HashPump arch = i686 arch = x86_64 @@ -2,8 +2,8 @@ _pkgname=python-hashpumpy pkgname=$_pkgname-git -pkgver=v1.2.0.r4.g2d01d3b -pkgrel=1 +pkgver=v1.2.0.r8.g314268e +pkgrel=2 pkgdesc=" A tool to exploit the hash length extension attack in various hashing algorithms" arch=("i686" "x86_64") url="https://github.com/bwall/HashPump" @@ -24,6 +24,14 @@ build() { python setup.py build } +check() { + cd "${srcdir}/${_pkgname}" + + pyver=$(python -c 'import sysconfig; print(sysconfig.get_config_var("VERSION"))') + export PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-$pyver:$PYTHONPATH" + python test.py +} + package() { cd "${srcdir}/${_pkgname}" python setup.py install --skip-build --root="${pkgdir}" |