blob: a463da898474c3e74da1f6f40e89e356d4acfb64 (
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
30
31
32
|
# Maintainer: fatalis <fatalis@fatalis.pw>
pkgname=ida-free
pkgver=7.0
pkgrel=2
pkgdesc="Freeware version of the world's smartest and most feature-full disassembler"
arch=('x86_64')
url='https://www.hex-rays.com/products/ida/'
license=('custom')
options=('!strip')
_installer='idafree70_linux.run'
source=("https://out7.hex-rays.com/files/${_installer}")
sha256sums=('e38333d6cf844706ec48d154e64740b9b125c388f7b3a541104ba0a9a61321ab')
package() {
install -d "${pkgdir}/opt/${pkgname}"
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/share/"{icons,applications,licenses/${pkgname}}
chmod +x ${_installer}
./${_installer} --mode unattended --prefix "${pkgdir}/opt/${pkgname}"
install ../ida-free.desktop "${pkgdir}/usr/share/applications"
# the installer needlessly makes a lot of files executable
find "${pkgdir}/opt/${pkgname}" -type f -exec chmod -x {} \;
chmod +x "${pkgdir}/opt/${pkgname}/ida64"
rm "${pkgdir}/opt/${pkgname}/"{uninstall*,Uninstall*,assistant}
ln -s /opt/${pkgname}/appico64.png "${pkgdir}/usr/share/icons/ida-free.png"
ln -s /opt/${pkgname}/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
ln -s /opt/${pkgname}/ida64 "${pkgdir}/usr/bin/ida64"
}
|