summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1287e19d5bd87a893b6ac5aa46a122dd667409f (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
# Maintainer: Jakob Kreuze <jakob@memeware.net>
pkgname=pince-git
pkgver=r642.78d9020
pkgrel=1
pkgdesc="A Linux reverse engineering tool inspired by Cheat Engine."
arch=('any')
url="https://github.com/korcankaraokcu/PINCE"
license=('GPL3')
depends=('python' 'python-pexpect' 'python-psutil' 'python-pyqt5' 'python-distorm' 'python-pygdbmi' 'gdb' 'sudo')
makedepends=()
source=("$pkgname::git+https://github.com/korcankaraokcu/PINCE.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/$pkgname"
    sed -i 's/\.\/gdb_pince\/gdb.*\/bin\/gdb/\/usr\/bin\/gdb/g' libPINCE/type_defs.py
    sed -i 's/\ssudo python3 PINCE.py/cd \/usr\/share\/PINCE \&\& sudo python3 PINCE.py/' PINCE.sh
    sed -i 's/OS=.*/OS="Arch"/' PINCE.sh
    install -d "$pkgdir/usr/bin"
    install PINCE.sh "$pkgdir/usr/bin/pince"
    install -d "$pkgdir/usr/share/PINCE"
    install PINCE.py COPYING AUTHORS THANKS "$pkgdir/usr/share/PINCE"
    cp -r GUI libPINCE media pince-non-stop-files "$pkgdir/usr/share/PINCE"
}