blob: fb796e76112b9e5c90b27db6b7ccbb1fc9cea24f (
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
|
# Maintainer: Radon Rosborough <radon@radian.codes>
pkgname=objection
pkgver=1.12.5
pkgrel=1
pkgdesc='Runtime mobile exploration toolkit powered by Frida'
arch=('any')
url="https://github.com/sensepost/$pkgname"
license=('GPLv3')
depends=(
'python>=3.10'
'python-click>=8.2.0'
'python-delegator>=0.1.1'
'python-flask>=3.0.0'
'python-frida>=16.0.0'
'python-frida-tools>=10.0.0'
'litecli>=1.3.0'
'python-packaging>=23.0'
'python-prompt_toolkit>=3.0.30'
'python-prompt_toolkit<4.0.0'
'python-pygments>=2.0.0'
'python-requests>=2.32.0'
'python-semver>=2'
'python-setuptools>=70.0.0'
'python-tabulate>=0.9.0'
)
makedepends=(python-build python-installer uv npm)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
'allow-scripts.patch')
sha256sums=('bd0c7ec53fd8c8c8ae9b0e97b439a20c65031a43fa2a91354631bdf07f6871bd'
'611263bf516f9d89b43a6a1bb695044d2b1d62e1e044b0d8e8613eb65dcb7107')
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i ../allow-scripts.patch
}
# No check() because upstream tests do not pass
# https://github.com/sensepost/objection/issues/780
build() {
cd $pkgname-$pkgver
(
cd agent
npm ci
)
python -m build --wheel --no-isolation
}
package() {
cd $pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|