blob: 4720b158d672564b80c6ed839caa7ee490eea4c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Python package author: Thomas Wucher <thomas.wucher@gtd-gmbh.de>
pkgname=elf-checker
pkgver=1.0.0
pkgrel=1
pkgdesc="A tool to visualize and check where ELF sections are located in different types of binaries"
arch=(any)
url="https://pypi.org/project/elf-checker"
license=(MPL-2.0)
makedepends=("python" "python-pip")
depends=("python" "python-pyelftools")
build() {
pip install --no-deps --target="elf-checker" elf-checker==$pkgver
}
package() {
sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
mkdir -p $pkgdir/"$sitepackages"
cp -r $srcdir/elf-checker/* $pkgdir/"$sitepackages"
mkdir -p $pkgdir/usr/bin
ln -s $sitepackages/bin/elf-checker $pkgdir/usr/bin/elf-checker
}
|