blob: d949e313d28f9d0aba8b0c928e20f0f4e7665be7 (
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
60
61
62
63
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=unblob-git
_pkgname=${pkgname%-git}
pkgver=0.0.0.r1228.g6b5e38a
pkgrel=1
pkgdesc='Extract files from any kind of container formats'
arch=(any)
url="https://github.com/onekey-sec/$_pkgname"
license=(MIT)
_py_deps=(arpy
attrs
click
cstruct
dissect.cstruct
# see : https://github.com/onekey-sec/unblob/pull/411#issuecomment-1555961215
pyperscan # pyperscan replaces hyperscan (brings vectorscan too)
jefferson
lark-parser
lief
lz4
plotext
pluggy
python-lzo
magic
rarfile
structlog
ubi-reader
treelib
unblob-native)
# yaffshiv removed see : https://github.com/onekey-sec/unblob/pull/513
depends=(python
"${_py_deps[@]/#/python-}")
makedepends=(git
git-lfs
python-{build,installer,wheel}
python-poetry)
source=("https://github.com/onekey-sec/unblob")
sha256sums=('SKIP')
# git clone using source array
# Fails with git-lfs error
prepare() {
rm -rf $_pkgname
git clone $url $_pkgname
}
pkgver() {
cd "$_pkgname"
git describe --long --abbrev=7 --tags --match="v*" |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
python -m build -wn
}
package() {
cd "$_pkgname"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|