blob: 67770926d309b749b510532eebcbc1b5aba1d2aa (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#depends() very incomplete
# you may need to edit this / rename your installer file. See _installer
#based on ida-free PKGBUILD by fatalis
#maintainer: fenugrec
pkgver=7.4
pkgname="ida-pro"
pkgrel=2
pkgdesc="Hex-Rays IDA Pro"
url="https://www.hex-rays.com/products/ida/${pkgver}/index.shtml"
license=('custom')
makedepends=('fakechroot')
depends=('libgl'
'qt5-base'
)
options=('!strip')
_installer='idapronl_7.4.run'
source=('ida-pro.desktop'
'ida-pro64.desktop')
sha256sums=('5df2fcbfa07c470b33a3c6df12c6625d78ccb2918b554f2dabfe6c341fefb182'
'2345e0c88f0426729b1ef04824d2a0be8ab5456d16fc602921f1261238ffdac1')
arch=('x86_64')
package() {
read -rp "Enter your installation password: " _installpw
[[ -z $_installpw ]] && return -1
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 ${_installpw}
rm "${pkgdir}"/${_installer}
rm -R "${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}/{ida{,64},assistant,qwingraph}
rm "${pkgdir}"/opt/${pkgname}/{uninstall*,Uninstall*}
install "${srcdir}"/ida-pro*.desktop "${pkgdir}"/usr/share/applications
ln -s /opt/${pkgname}/appico64.png "${pkgdir}"/usr/share/icons/ida-pro64.png
ln -s /opt/${pkgname}/appico.png "${pkgdir}"/usr/share/icons/ida-pro.png
ln -s /opt/${pkgname}/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
ln -s /opt/${pkgname}/ida64 "${pkgdir}"/usr/bin/ida64
ln -s /opt/${pkgname}/ida "${pkgdir}"/usr/bin/ida
}
|