blob: 2bd546bb0a0eaff84854b4c7386d9051648e432f (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Tonik <toni[at]kukec[dot]dev>
pkgname=python-libdebug
pkgver=0.9.0
_srcname="${pkgname/python-/}"
_srcdir="$_srcname-$pkgver"
pkgrel=1
pkgdesc="A Python library for the debugging of binary executables."
arch=('x86_64')
url="https://github.com/libdebug/libdebug"
license=('MIT')
depends=(
gcc-libs
glibc
libdwarf
libelf
python
python-prompt_toolkit
python-psutil
python-pyelftools
python-requests
python-rich
)
makedepends=(
nanobind
python-build
python-installer
python-scikit-build-core
python-typing_extensions
)
checkdepends=(
python-pwntools
python-objgraph
)
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz)
sha512sums=('ff5ad792bf2006acc8ad35bb2796faedcb0cdce1f5bca2b93ac535b921a821efa869e4910fd529958b424f62d6ace8c63ea239152fa0632233233d398b381381')
build() {
cd $_srcdir
python3 -m build --wheel --no-isolation
}
package() {
cd $_srcdir
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
check() {
cd $_srcdir
_temp_dir=$(mktemp -d)
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m installer --destdir="$_temp_dir" dist/*.whl
export PYTHONPATH="$_temp_dir/$_site_packages:$PYTHONPATH"
cd test
python run_suite.py
trap 'rm -rf "$_temp_dir"' EXIT
}
|