# Maintainer: Jakob Kreuze 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' 'gdb') 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-7\.11\.1\/bin\/gdb/\/usr\/bin\/gdb/g' libPINCE/type_defs.py sed -i 's/\ssudo python3 PINCE.py/cd \/usr\/share\/PINCE \&\& python 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" }