diff options
author | JJ | 2024-03-03 03:00:09 -0800 |
---|---|---|
committer | JJ | 2024-03-03 03:01:47 -0800 |
commit | bfdc0dcbb85775f553a2d4115f2adcdd8f1704d3 (patch) | |
tree | 7c6367f72194e989d79c665e0cec1011bcde4999 | |
parent | 69129b1651af465244cb787a78fa2e0426009331 (diff) | |
download | aur-bfdc0dcbb85775f553a2d4115f2adcdd8f1704d3.tar.gz |
Rewrite PKGBUILD, update to 4.0
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 108 | ||||
-rw-r--r-- | binaryninja.desktop | 6 | ||||
-rw-r--r-- | binaryninja.install | 47 | ||||
-rw-r--r-- | binaryninja.png | bin | 10926 -> 9652 bytes |
6 files changed, 37 insertions, 144 deletions
@@ -1,12 +1,11 @@ pkgbase = binaryninja-personal - pkgdesc = Binary Ninja is a binary multi-tool and reversing platform - pkgver = 2.4.2846 + pkgdesc = An interactive decompiler, disassembler, debugger, and binary analysis platform. This package is for the Personal Edition and requires both an installer zip and a license. + pkgver = 4.0.4911 pkgrel = 1 url = https://binary.ninja - install = binaryninja.install arch = x86_64 license = custom:Binary Ninja License Agreement - depends = python2 + depends = python depends = glibc depends = glib2 depends = gcc-libs-multilib @@ -27,14 +26,14 @@ pkgbase = binaryninja-personal depends = libxau depends = libxdmcp depends = libcurl-compat - depends = openssl-1.0 + depends = openssl depends = qt5-base optdepends = gtk-update-icon-cache: icon support - provides = binaryninja - conflicts = binaryninja source = file://BinaryNinja-personal.zip source = binaryninja.png - sha256sums = b519e371af2e5162fdb12f3426a2e007cab357e6e93aed8132144aea33af246c - sha256sums = ac2e652f617d5ef8aaa34a5113164f51f3f673c872a635d29c93878a00650bf8 + source = binaryninja.desktop + sha256sums = e030971677465e1b2c3c7e3dfa380553a5f306eb088f028194845ab52bdc6739 + sha256sums = 4f318001e7d39279ce063ef42077bae03e95c112aa203a4be3ea3d913c34327e + sha256sums = a1e20e8176292c67fcc50d3444e95e31ee91ff6cf861f8529554152ed7bd8139 pkgname = binaryninja-personal diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 832a778e57d4..000000000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -BinaryNinja-*.zip -license.txt -license.dat @@ -1,104 +1,42 @@ -# Maintainer: David Manouchehri +# Maintainer: apropos <jj@toki.la> +# Contributor: David Manouchehri # Contributor: Alex Palaistras <alex+archlinux@deuill.org> # Contributor: Elen Eisendle # Contributor: Spenser Reinhardt -_pkgname="binaryninja" -_branch="stable" -_edition="-personal" -pkgname="${_pkgname}${_edition}" -[[ "${_branch}" != "stable" ]] && pkgname="${pkgname}-${_branch}" -pkgdesc="Binary Ninja is a binary multi-tool and reversing platform" +pkgname=binaryninja-personal +_pkgname=binaryninja +pkgver=4.0.4911 +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 and a license." +arch=('x86_64') url="https://binary.ninja" license=('custom:Binary Ninja License Agreement') -arch=('x86_64') -conflicts=("${_pkgname}") -provides=("${_pkgname}") -pkgver=2.4.2846 -pkgrel=1 # reset after new release, and .srcinfo -install="${_pkgname}.install" -makedeps=('curl' 'perl') depends=( - 'python2' 'glibc' 'glib2' 'gcc-libs-multilib' 'pcre' 'zlib' + 'python' 'glibc' 'glib2' 'gcc-libs-multilib' 'pcre' 'zlib' 'libssh2' 'libnghttp2' 'libpsl' 'libxcb' 'icu' 'keyutils' 'libxext' 'libx11' 'libglvnd' 'krb5' 'e2fsprogs' 'libffi' - 'libxau' 'libxdmcp' 'libcurl-compat' 'openssl-1.0' 'qt5-base' + 'libxau' 'libxdmcp' 'libcurl-compat' 'openssl' 'qt5-base' ) optdepends=('gtk-update-icon-cache: icon support') -# https://binary.ninja/recover/ source=( - "file://BinaryNinja${_edition}.zip" - "binaryninja.png" + "file://BinaryNinja-personal.zip" # https://binary.ninja/recover/ + "${_pkgname}.png" + "${_pkgname}.desktop" ) -_hash=$(curl -s https://binary.ninja/js/hashes.js | perl -pe "s/.*Ninja${_edition}.zip\":\s\"([\da-f]+)\".*/\$1/g") sha256sums=( - "${_hash}" - 'ac2e652f617d5ef8aaa34a5113164f51f3f673c872a635d29c93878a00650bf8' + 'e030971677465e1b2c3c7e3dfa380553a5f306eb088f028194845ab52bdc6739' + '4f318001e7d39279ce063ef42077bae03e95c112aa203a4be3ea3d913c34327e' + 'a1e20e8176292c67fcc50d3444e95e31ee91ff6cf861f8529554152ed7bd8139' ) -pkgver() { - curl -s https://binary.ninja/js/changelog.js | perl -pe 's/.*?version":\s"(\d+\.\d+\.\d+)".*/$1/' -} - -_cp_files() { - # installs files, trims `${srcdir}/${_pkgname}` to allow outpath directly - mode="${1}" - inpath="${2}" # single path - outpath="${3}" - [[ ${argc} -gt 3 ]] && depth="${4}" # unset for no limit - [[ ${argc} -gt 4 ]] && skip="${5}" # comma separated list - # set $cmd based on depth's existence - [ -z ${depth+x} ] && cmd="find ${inpath} -type f" || cmd="find ${inpath} -maxdepth ${depth} -type f" - for file in $(${cmd}); do - if [ -z ${skip+x} ]; then # dont bother if unset - for s in $(echo ${skip}| sed 's/,/ /g'); do - [[ "${file}" =~ "${s}" ]] && c=0 && break - done - [ ! -z ${c+x} ] && unset c && continue # is skipped ? unset+continue : move file - fi - outfile=$(echo ${file} | perl -pe "s|${srcdir}/${_pkgname}|${outpath}|g") # trim - install -m "${mode}" "${file}" "${outfile}" - done -} - -prepare() { - echo "[Desktop Entry] -Name=Binary Ninja ${_edition} -Exec=/usr/bin/${_pkgname} -Icon=/opt/binaryninja/docs/img/logo.png -Type=Application -Categories=Development;Debugger;Profiling;" > "${srcdir}/binaryninja.desktop" -} +# pkgver() { curl -s https://binary.ninja/js/changelog.js | perl -pe 's/.*?version":\s"(\d+\.\d+\.\d+)".*/$1/' } package() { - _srcdir="${srcdir}/${_pkgname}" - destdir="${pkgdir}/opt/${_pkgname}" - [[ "${_branch}" != "stable" ]] && destdir="${destdir}-${_branch}" - - msg2 "Creating directories" - install -dm 755 "${pkgdir}/usr/share/icons/hicolor/128x128/apps/" - install -dm 755 "${pkgdir}/usr/share/applications/" - for dir in $(find "${_srcdir}" -type d); do - dir=$(echo $dir | perl -pe "s|${_srcdir}|${destdir}|g") - install -dm 755 "${dir}" - done - - msg2 "Copying non-executable files" - install -m 644 "${srcdir}/binaryninja.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/" - install -m 644 "${srcdir}/binaryninja.desktop" "${pkgdir}/usr/share/applications/" - install -m 644 "${_srcdir}/qt.conf" "${destdir}/qt.conf" - _cp_files 644 "${_srcdir}/docs" "${destdir}" - _cp_files 644 "${_srcdir}/api-docs" "${destdir}" - _cp_files 644 "${_srcdir}/scc-docs" "${destdir}" - _cp_files 644 "${_srcdir}/types" "${destdir}" - - msg2 "Copying executable files" - _cp_files 755 "${_srcdir}/" "${destdir}" "0" "qt.conf" - _cp_files 755 "${_srcdir}/python" "${destdir}" - _cp_files 755 "${_srcdir}/scripts" "${destdir}" - _cp_files 755 "${_srcdir}/plugins" "${destdir}" - _cp_files 755 "${_srcdir}/qt" "${destdir}" - _cp_files 755 "${_srcdir}/examples" "${destdir}" -} + mkdir "${pkgdir}/opt" + install -d "${pkgdir}"/usr/share/{icons,applications} -# vim:set et sw=2 sts=2 tw=80: + 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/" +} diff --git a/binaryninja.desktop b/binaryninja.desktop new file mode 100644 index 000000000000..033abb5d2b40 --- /dev/null +++ b/binaryninja.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Binary Ninja +Exec=/opt/binaryninja/binaryninja +Icon=/opt/binaryninja/docs/img/logo.png +Type=Application +Categories=Development;Debugger;Profiling; diff --git a/binaryninja.install b/binaryninja.install deleted file mode 100644 index 1a67559ddca1..000000000000 --- a/binaryninja.install +++ /dev/null @@ -1,47 +0,0 @@ -post_install() { - # post install to avoid builder needing makedeps - if [ ! -L /opt/binaryninja/libcurl.so.4 ]; then - echo "Linking libcurl-compat to /opt/binaryninja/" - ln -s /usr/lib/libcurl.so.3 /opt/binaryninja/libcurl.so.4 - fi - if [ ! -L /opt/binaryninja/plugins/libcurl.so.4 ]; then - echo "Linking libcurl-compat to /opt/binaryninja/plugins/" - ln -s /usr/lib/libcurl.so.3 /opt/binaryninja/plugins/libcurl.so.4 - fi - if [ ! -L /opt/binaryninja/plugins/libpython2.7.so.1 ]; then - echo "Linking libpython2.7 to /opt/binaryninja/plugins/" - ln -s /usr/lib/libpython2.7.so /opt/binaryninja/plugins/libpython2.7.so.1 - fi - if [ ! -L /usr/bin/binaryninja ]; then - echo "Linking binaryninja to /usr/bin/" - ln -s /opt/binaryninja/binaryninja /usr/bin/binaryninja - fi - gtk-update-icon-cache -f -q -t /usr/share/pixmaps -} -pre_upgrade(){ - if [ -h /usr/bin/binaryninja ]; then - echo "Unlinking binaryninja from /usr/bin/" - rm -f /usr/bin/binaryninja - fi - if [ -h /opt/binaryninja/plugins/libpython2.7.so.1 ]; then - echo "Unlinking libpython2.7 from /opt/binaryninja/plugins/" - rm -f /opt/binaryninja/plugins/libpython2.7.so.1 - fi - if [ -h /opt/binaryninja/plugins/libcurl.so.4 ]; then - echo "Unlinking libcurl-compat from /opt/binaryninja/plugins/" - rm -f /opt/binaryninja/plugins/libcurl.so.4 - fi - if [ -h /opt/binaryninja/libcurl.so.4 ]; then - echo "Unlinking libcurl-compat from /opt/binaryninja/" - rm -f /opt/binaryninja/libcurl.so.4 - fi -} -post_upgrade() { - post_install -} -pre_remove(){ - pre_upgrade -} -post_remove() { - gtk-update-icon-cache -f -q -t /usr/share/pixmaps -}
\ No newline at end of file diff --git a/binaryninja.png b/binaryninja.png Binary files differindex b538291ecc1a..d117edcf732b 100644 --- a/binaryninja.png +++ b/binaryninja.png |