summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df13d900ad08dcc131008ef1572ded39f2f37337 (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
# Maintainer: Marin M <https://github.com/marin-m>

pkgname=pbtk-git
pkgver=1.0.4
pkgrel=3
pkgdesc='A toolset for reverse engineering and fuzzing Protobuf-based apps'
url='https://github.com/marin-m/pbtk'
arch=('i686' 'x86_64')
license=('GPL3')
depends=('python-pyqt5' 'python-protobuf' 'python-requests' 'python-websocket-client' 'qt5-webengine' 'python-pyqtwebengine' 'chromium' 'java-runtime')
makedepends=('git' 'findutils')
source=('git+https://github.com/marin-m/pbtk')
sha512sums=('SKIP')

prepare() {
  cat > pbtk.sh << EOF
#!/bin/bash
cd /usr/share/pbtk/
exec ./gui.py "\$@"
EOF
}

package() {
  cd pbtk
  install -Dm 755 ../pbtk.sh "${pkgdir}/usr/bin/pbtk"
  install -Dm 755 gui.py -t "${pkgdir}/usr/share/pbtk"
  
  find . -regex '.*\(\.bat\|\.exe\|_osx\)' -type f -delete
  chmod -R 755 extractors utils/external
  
  cp -r extractors utils views "${pkgdir}/usr/share/pbtk"
  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/pbtk"
}