blob: 643cd8245291e6f4b75aa6b3f1a89dad4c66a7af (
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
|
# Maintainer: Maya Pasricha <maya@osiris.cyber.nyu.edu>
# Contributor: apropos <jj@toki.la>
# Contributor: David Manouchehri
# Contributor: Alex Palaistras <alex+archlinux@deuill.org>
# Contributor: Elen Eisendle
# Contributor: Spenser Reinhardt
pkgname=binaryninja-personal
_pkgname=binaryninja
pkgver=5.3.9434
pkgrel=1
pkgdesc="An interactive decompiler, disassembler, debugger, and binary analysis platform. This package is for the Personal Edition and requires both an installer zip (x86 or ARM) and a license."
arch=('x86_64' 'arm')
url="https://binary.ninja"
license=('custom:Binary Ninja License Agreement')
depends=(
'python' 'glibc' 'glib2' 'gcc-libs-multilib' 'pcre' 'zlib'
'libssh2' 'libnghttp2' 'libpsl' 'libxcb' 'icu' 'keyutils'
'libxext' 'libx11' 'libglvnd' 'krb5' 'e2fsprogs' 'libffi'
'libxau' 'libxdmcp' 'libxml2-legacy' 'libcurl-compat' 'openssl' 'qt5-base'
)
optdepends=('gtk-update-icon-cache: icon support')
provides=(binaryninja)
source=(
"${_pkgname}.png"
"${_pkgname}.desktop"
)
sha256sums=(
'4f318001e7d39279ce063ef42077bae03e95c112aa203a4be3ea3d913c34327e'
'a1e20e8176292c67fcc50d3444e95e31ee91ff6cf861f8529554152ed7bd8139')
prepare() {
local _zip="binaryninja_linux_${pkgver}_personal.zip"
# Download from https://portal.binary.ninja with a valid Personal license
local _zippath="${SRCDEST}/${_zip}"
if [[ ! -f "${_zippath}" ]]; then
echo "ERROR: ${_zip} not found."
echo "Download it from https://portal.binary.ninja and place it in the same directory as this PKGBUILD."
return 1
fi
cp "${_zippath}" "${srcdir}/"
cd "${srcdir}"
bsdtar -xf "${_zip}"
}
package() {
mkdir "${pkgdir}/opt"
install -d "${pkgdir}"/usr/share/{icons,applications}
cp -r "${srcdir}/${_pkgname}" "${pkgdir}/opt/${_pkgname}"
install -m644 "${srcdir}/${_pkgname}.png" "${pkgdir}/usr/share/icons/"
install -m644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/"
}
|