diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-20 18:53:35 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-20 18:53:49 +0000 |
commit | 6ff6001b43627f4ca236cdab23f1451b9fe6ef74 (patch) | |
tree | cbb693085512e50444b3d051ca1263aa5d230cba | |
parent | a4d74b041dcf701d123eb3e45f1033e4c545ef3c (diff) | |
download | aports-6ff6001b43627f4ca236cdab23f1451b9fe6ef74.tar.bz2 aports-6ff6001b43627f4ca236cdab23f1451b9fe6ef74.tar.xz |
community/volatility: modernize and add basic check
Add basic check as upstream doesn't provide a test suite.
-rw-r--r-- | community/volatility/APKBUILD | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/community/volatility/APKBUILD b/community/volatility/APKBUILD index 85aa2d6d0f..6f804454f0 100644 --- a/community/volatility/APKBUILD +++ b/community/volatility/APKBUILD @@ -2,30 +2,31 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=volatility pkgver=2.6 -pkgrel=0 +pkgrel=1 pkgdesc="Volatile memory forensics toolkit" url="http://volatilityfoundation.org/" arch="noarch" license="GPL2" depends="py-crypto" -depends_dev="" -makedepends="$depends_dev py-setuptools" -install="" -subpackages="" +makedepends="py-setuptools" source="https://github.com/volatilityfoundation/$pkgname/archive/$pkgver.zip" -_builddir="$srcdir"/$pkgname-$pkgver -build () -{ - cd "$_builddir" - python2 setup.py build || return 1 +builddir="$srcdir/$pkgname-$pkgver" + +build () { + cd "$builddir" + python2 setup.py build +} + +check() { + cd "$builddir" + ./build/scripts-2.7/vol.py --help > /dev/null + } package() { - cd "$_builddir" - python2 setup.py install --root "$pkgdir" || return 1 + cd "$builddir" + python2 setup.py install --root "$pkgdir" } -md5sums="f187f3e257e87b2bebdea40772daf3e5 2.6.zip" -sha256sums="1d66f7d300ecb4df82ec3c8d3a8067e84d74674e0ec96ba9cec32b8b9667c415 2.6.zip" sha512sums="3b34ae15e6c280fbfad7012de125ac7cdbf7b078001caef0e6a002e5f77cabc495a6b05932deebc1825e07bbe8e2154913c81a3668abc066febd82f1ebe186e8 2.6.zip" |