# Maintainer: nezu@nezu.cc pkgname=ida-pro-patched _pkgname=ida-pro pkgver=9.1.250226 pkgrel=1 pkgdesc="Hex-Rays IDA Pro" arch=('x86_64') url="https://hex-rays.com/ida-pro/" license=('custom') makedepends=('fakechroot') depends=( 'libgl' 'libx11' 'libxext' 'libxrender' 'glib2' 'qt5-base' 'python-rpyc' ) options=('!strip') _name="$_pkgname-$pkgver" _release_url="https://vaclive.party/software/$_pkgname/releases/download/$pkgver" source=( "$_name.run::$_release_url/ida-pro_91_x64linux.run" "$_name.run.sig::$_release_url/ida-pro_91_x64linux.run.sig" "patch.py::$_release_url/keygen.py" "patch.py.sig::$_release_url/keygen.py.sig" "$_pkgname.desktop" "$_pkgname-teams.desktop" ) sha256sums=('8ff08022be3a0ef693a9e3ea01010d1356b26cfdcbbe7fdd68d01b3c9700f9e2' 'SKIP' 'f1459fd512ac44d589f020ba71e0de20ebf8798df26f167db6fe4c087c7cd0d6' 'SKIP' '445e0498d24676cc81c1f9b81a30241eabd480852561f398e520e6e23d4b97bd' 'b8a7ca4f69428c0191733167905f89c34d73d14778f62aea9b3e2c758792308f') validpgpkeys=('09BE40243217978201A0440E101BA3F4C612AA41') # nezu prepare() { mkdir -p "$_name/tmp" cp "$srcdir/$_name.run" "$_name" chmod +x "$_name/$_name.run" mkdir -p "$srcdir/$_name/$HOME/.local/share/applications" fakechroot chroot "$srcdir/$_name" "/$_name.run" --mode unattended --prefix /opt/$_name cd "$_name/opt/$_name" python3 "$srcdir/patch.py" mv -v libida32.so.patched libida32.so mv -v libida.so.patched libida.so rm uninstall* Uninstall* } package() { install -dm755 "$pkgdir/opt/$_pkgname" cp --preserve=mode,timestamps -r "$srcdir/$_name/opt/$_name/"* "$pkgdir/opt/$_pkgname" install -dm755 "$pkgdir/usr/bin" ln -s "/opt/$_pkgname/ida" "$pkgdir/usr/bin/ida" ln -s "/opt/$_pkgname/hvui" "$pkgdir/usr/bin/hvui" install -Dm644 "$srcdir/$_name/opt/$_name/appico.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" install -Dm644 "$srcdir/$_name/opt/$_name/hvui.png" "$pkgdir/usr/share/pixmaps/$_pkgname-teams.png" install -Dm644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop" install -Dm644 "$srcdir/$_pkgname-teams.desktop" "$pkgdir/usr/share/applications/$_pkgname-teams.desktop" }