diff options
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | ida-eval.desktop | 2 |
2 files changed, 32 insertions, 28 deletions
@@ -1,43 +1,47 @@ # Maintainer: stick <stick@stma.is> pkgname=ida-eval pkgver=7.4 -pkgrel=1 -pkgdesc="Evaluation version of the world's smartest and most feature-full disassembler" +pkgrel=2 +pkgdesc='Interactive, programmable, extensible, multi-processor disassembler (evaluation version)' arch=('x86_64') -url='https://www.hex-rays.com/products/ida/' +url='https://out7.hex-rays.com/demo' license=('custom') -makedepends=('fakechroot') +depends=('qt5-base') options=('!strip') _installer='idademo74_linux.run' source=("$_installer" - "$pkgname.desktop") + "$pkgname.desktop") sha256sums=('547373518e2823a94195ea5e06cacf53c101610afa0f642204e7265f4b548045' - '5f51fea009781672998ffec1c1d63d392e87ac6eb04b637a1ee2827805b8e1db') + '0ccb62aca554831233a9d968a7a886693dfcdd2f03f97d360981d73e9664a982') package() { - install -d "$pkgdir"/opt/"$pkgname" - install -d "$pkgdir"/usr/bin - install -d "$pkgdir"/usr/share/{icons,applications,licenses/"$pkgname"} - install -d "$pkgdir"/tmp + install -d "$pkgdir"/opt/"$pkgname" + install -d "$pkgdir"/usr/bin + install -d "$pkgdir"/usr/share/{icons,applications,licenses/"$pkgname"} + install -d "$pkgdir"/tmp - # chroot is needed to prevent the installer from creating a single file outside of prefix - # have to copy the installer due to chroot - cp "$srcdir/$_installer" "$pkgdir"/ - chmod +x "$pkgdir"/"$_installer" - fakechroot chroot "$pkgdir" /"$_installer" --mode unattended \ - --prefix /opt/"$pkgname" --installpassword "" - rm "$pkgdir"/"$_installer" - rm "$pkgdir"/tmp/bitrock_installer.log - rmdir "$pkgdir"/tmp + chmod +x "$_installer" + ./"$_installer" --mode unattended --prefix "$pkgdir"/opt/"$pkgname" \ + --installpassword "" + rmdir "$pkgdir"/tmp - # the installer needlessly makes a lot of files executable - find "$pkgdir"/opt/"$pkgname" -type f -exec chmod -x {} \; - chmod +x "$pkgdir"/opt/"$pkgname"/{ida64,assistant} + # the installer needlessly makes a lot of files executable + find "$pkgdir"/opt/"$pkgname" -type f -exec chmod -x {} \; + chmod +x "$pkgdir"/opt/"$pkgname"/{ida64,assistant} - rm "$pkgdir"/opt/"$pkgname"/{uninstall*,Uninstall*} + rm "$pkgdir"/opt/"$pkgname"/{uninstall*,Uninstall*} - install "$srcdir"/"$pkgname".desktop "$pkgdir"/usr/share/applications - ln -s /opt/"$pkgname"/appico64.png "$pkgdir"/usr/share/icons/"$pkgname".png - ln -s /opt/"$pkgname"/license.txt "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE - ln -s /opt/"$pkgname"/ida64 "$pkgdir"/usr/bin/ida64-eval + install "$srcdir"/"$pkgname".desktop "$pkgdir"/usr/share/applications + ln -s /opt/"$pkgname"/appico64.png "$pkgdir"/usr/share/icons/"$pkgname".png + ln -s /opt/"$pkgname"/license.txt "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE + + cat <<-"EOF" >"$pkgdir"/usr/bin/ida64-eval + #!/bin/sh + if [ "$QT_QPA_PLATFORM" == wayland-egl ]; then + QT_QPA_PLATFORM= /opt/ida-eval/ida64 + else + /opt/ida-eval/ida64 + fi + EOF + chmod +x "$pkgdir"/usr/bin/ida64-eval } diff --git a/ida-eval.desktop b/ida-eval.desktop index cadc2bacfff7..72b8f6a658f3 100644 --- a/ida-eval.desktop +++ b/ida-eval.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=IDA (Evaluation) Comment=The Interactive Disassembler -Exec=/opt/ida-eval/ida64 +Exec=/usr/bin/ida64-eval Icon=ida-eval Terminal=false Type=Application |