ida-pro-patched/PKGBUILD

65 lines
2.2 KiB
Bash
Raw Normal View History

2024-10-16 11:41:13 +00:00
# Maintainer: nezu@nezu.cc
2024-08-10 18:53:19 +00:00
pkgname=ida-pro-patched
_pkgname=ida-pro
2025-03-20 12:22:56 +00:00
pkgver=9.1.250226
2025-01-14 21:33:46 +00:00
pkgrel=1
2025-03-20 12:22:56 +00:00
pkgdesc="Hex-Rays IDA Pro"
2024-08-10 18:53:19 +00:00
arch=('x86_64')
url="https://hex-rays.com/ida-pro/"
license=('custom')
makedepends=('fakechroot')
2025-03-20 12:22:56 +00:00
depends=(
'libgl'
'libx11'
'libxext'
'libxrender'
'glib2'
'qt5-base'
'python-rpyc'
)
2024-08-10 18:53:19 +00:00
options=('!strip')
_name="$_pkgname-$pkgver"
2024-10-16 11:41:13 +00:00
_release_url="https://vaclive.party/software/$_pkgname/releases/download/$pkgver"
2024-08-10 18:53:19 +00:00
source=(
2025-03-20 12:22:56 +00:00
"$_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"
2024-08-10 18:53:19 +00:00
"$_pkgname.desktop"
2025-03-20 12:22:56 +00:00
"$_pkgname-teams.desktop"
2024-08-10 18:53:19 +00:00
)
2025-03-20 12:22:56 +00:00
sha256sums=('8ff08022be3a0ef693a9e3ea01010d1356b26cfdcbbe7fdd68d01b3c9700f9e2'
2024-10-16 11:41:13 +00:00
'SKIP'
2025-03-20 12:22:56 +00:00
'f1459fd512ac44d589f020ba71e0de20ebf8798df26f167db6fe4c087c7cd0d6'
2024-10-16 11:41:13 +00:00
'SKIP'
2025-03-20 12:22:56 +00:00
'445e0498d24676cc81c1f9b81a30241eabd480852561f398e520e6e23d4b97bd'
'b8a7ca4f69428c0191733167905f89c34d73d14778f62aea9b3e2c758792308f')
2024-10-16 11:41:13 +00:00
validpgpkeys=('09BE40243217978201A0440E101BA3F4C612AA41') # nezu <nezu@nezu.cc>
2024-08-10 18:53:19 +00:00
prepare() {
mkdir -p "$_name/tmp"
cp "$srcdir/$_name.run" "$_name"
chmod +x "$_name/$_name.run"
2025-01-14 21:33:46 +00:00
mkdir -p "$srcdir/$_name/$HOME/.local/share/applications"
fakechroot chroot "$srcdir/$_name" "/$_name.run" --mode unattended --prefix /opt/$_name
2024-08-10 18:53:19 +00:00
cd "$_name/opt/$_name"
python3 "$srcdir/patch.py"
2024-10-16 11:41:13 +00:00
mv -v libida32.so.patched libida32.so
2024-08-10 18:53:19 +00:00
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"
2024-10-16 11:49:37 +00:00
ln -s "/opt/$_pkgname/ida" "$pkgdir/usr/bin/ida"
2025-03-20 12:22:56 +00:00
ln -s "/opt/$_pkgname/hvui" "$pkgdir/usr/bin/hvui"
2024-08-10 18:53:19 +00:00
install -Dm644 "$srcdir/$_name/opt/$_name/appico.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
2025-03-20 12:22:56 +00:00
install -Dm644 "$srcdir/$_name/opt/$_name/hvui.png" "$pkgdir/usr/share/pixmaps/$_pkgname-teams.png"
2024-08-10 18:53:19 +00:00
install -Dm644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
2025-03-20 12:22:56 +00:00
install -Dm644 "$srcdir/$_pkgname-teams.desktop" "$pkgdir/usr/share/applications/$_pkgname-teams.desktop"
2024-08-10 18:53:19 +00:00
}