blob: d036b7451ccf9a1485fec44b50ede9e1d749bd7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=python-smda
pkgver=4.2.16
pkgrel=1
pkgdesc="Recursive diassembler optimized for CFG recovery from memory dumps"
arch=(any)
url="https://github.com/danielplohmann/smda"
license=(BSD-2-Clause)
depends=(python python-capstone python-dncil python-dnfile lief)
makedepends=(python-setuptools python-build python-installer python-wheel)
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/smda/smda-$pkgver.tar.gz")
sha256sums=('b526610952740c8a785f947b8cc05f8e4f22768b22e1b5ccbca2050949bd1b10')
build() {
cd "smda-$pkgver"
python -m build --wheel --no-isolation
}
## check()
# Upstream does not provide test data in their wheel packages. The only way
# to get that data is to grab it from GitHub, but they don't provide releases
# there either.
package() {
cd "smda-$pkgver"
python -m installer --destdir="$pkgdir/" dist/*.whl
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -d "$pkgdir/usr/share/licenses/$pkgname/"
ln -s "$_site/smda-$pkgver.dist-info/licenses/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
|