Date: Thursday, April 21, 2022 @ 21:42:38 Author: freswa Revision: 1187280
archrelease: copy trunk to community-x86_64 Added: ghidra/repos/community-x86_64/PKGBUILD (from rev 1187279, ghidra/trunk/PKGBUILD) Deleted: ghidra/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 153 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 76 insertions(+), 77 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-21 21:42:34 UTC (rev 1187279) +++ PKGBUILD 2022-04-21 21:42:38 UTC (rev 1187280) @@ -1,77 +0,0 @@ -# Maintainer: Robin Broda <robin at broda dot me> -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> - -pkgname=ghidra -pkgver=10.1.2 -_ghidra_data=7d843ec229d43c2d1a8178aaa892be90e37e95a2 -_d2j=2.0 -_yajsw=13.01 -pkgrel=1 -pkgdesc='Software reverse engineering framework' -url='https://ghidra-sre.org/' -arch=('x86_64') -license=('Apache') -depends=('java-environment>=11' 'bash') -makedepends=('git' 'gradle' 'unzip' 'java-environment=11') -optdepends=('python2: Python feature' - 'pam: GhidraServer support') -options=('!strip') -source=(https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${pkgver}_build.tar.gz - "git+https://github.com/NationalSecurityAgency/ghidra-data#commit=${_ghidra_data}" - https://github.com/pxb1988/dex2jar/releases/download/${_d2j}/dex-tools-${_d2j}.zip - https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar - https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-beta-${_yajsw}/yajsw-beta-${_yajsw}.zip) -noextract=(AXMLPrinter2.jar - yajsw-beta-${_yajsw}.zip) -sha512sums=('d6f27713a61dc97b882cc1ba0ae7984f52b6eb35f880788e775db84a5a047abfcc48defa4f5cfc6c5cdf316d0dc550bb8e81b767c52d115f4f7bfa466145f30b' - 'SKIP' - 'c4a6c72ea09b58a44fcb8918cfada600467f10f99a02b53d2436ac68295e73c8daf9ba0a8bc7160ba1e28e87f032ee034435ebe40af35b6e2fe9fa4607581358' - 'c1168ec913f1fbb0675915d4fd865ec9a8e8573f6c8aedcb6e68166f61f11aeaececc7548d54d78134843c0102c57d6350973f6d3027d0ffdae52a5c57a7f601' - 'ed8758920b98003094c79824a9304abbb8ddd40b1a0e1d294093f9b1df81fe7af0770dce1fb64345734ba20eacea52cc6f4b439960b4cdffa808d401994a0e95') - -prepare() { - export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}" - cd ghidra-Ghidra_${pkgver}_build - - # Copy needed libraries into flat repo folder - install -Dm 644 ../dex2jar-${_d2j}/lib/dex-*.jar \ - ../AXMLPrinter2.jar \ - -t dependencies/flatRepo - - # YAJSW expects this symlink - ln -sf ghidra-Ghidra_${pkgver}_build ../ghidra.bin - install -Dm 644 ../yajsw-beta-${_yajsw}.zip -t dependencies/GhidraServer - - # Add FID datasets - install -Dm 644 ../ghidra-data/FunctionID/*.fidb -t Ghidra/Features/FunctionID/src/main/fidb - - # Ignore lack of licensing for YAJSW zip, packed FID datasets, and the native binaries - sed -i '/FileTree tree/a\\t\texclude "yajsw-stable-**.zip"\n\t\texclude "src/main/fidb/**.fidb"\n\t\texclude "os/linux64/**"' gradle/support/ip.gradle -} - -build() { - export GRADLE_HOME="$(pwd)/usr/share/java/gradle/" - export PATH="$(pwd)/usr/share/java/gradle/bin/:${PATH}" - cd ghidra-Ghidra_${pkgver}_build - gradle yajswDevUnpack - gradle buildNatives_linux_x86_64 - gradle sleighCompile - gradle buildGhidra -} - -package() { - cd ghidra-Ghidra_${pkgver}_build - - # Extract built archive into destination folder - install -d "${pkgdir}"/{opt,usr/bin} - _appver=$(grep -oP '(?<=^application.version=).*$' Ghidra/application.properties) - _relname=$(grep -oP '(?<=^application.release.name=).*$' Ghidra/application.properties) - unzip -u "build/dist/ghidra_${_appver}_${_relname}"_*_linux_x86_64.zip -d "${pkgdir}"/opt - - # Simplify some directory and binary names - mv "${pkgdir}"/opt/ghidra{_*,} - ln -s /opt/ghidra/ghidraRun "${pkgdir}"/usr/bin/ghidra - ln -s /opt/ghidra/support/analyzeHeadless "${pkgdir}"/usr/bin/ghidra-analyzeHeadless -} - -# vim: ts=2 sw=2 et: Copied: ghidra/repos/community-x86_64/PKGBUILD (from rev 1187279, ghidra/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-21 21:42:38 UTC (rev 1187280) @@ -0,0 +1,76 @@ +# Maintainer: Robin Broda <robin at broda dot me> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +pkgname=ghidra +pkgver=10.1.3 +_d2j=2.0 +_yajsw=13.01 +pkgrel=1 +pkgdesc='Software reverse engineering framework' +url='https://ghidra-sre.org/' +arch=('x86_64') +license=('Apache') +depends=('java-environment>=11' 'bash') +makedepends=('git' 'gradle' 'unzip' 'java-environment=11') +optdepends=('python2: Python feature' + 'pam: GhidraServer support') +options=('!strip') +source=(https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${pkgver}_build.tar.gz + "git+https://github.com/NationalSecurityAgency/ghidra-data#tag=Ghidra_${pkgver}" + https://github.com/pxb1988/dex2jar/releases/download/${_d2j}/dex-tools-${_d2j}.zip + https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar + https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-beta-${_yajsw}/yajsw-beta-${_yajsw}.zip) +noextract=(AXMLPrinter2.jar + yajsw-beta-${_yajsw}.zip) +sha512sums=('e6a6a9ccf79b2d0c6a5ff3171de0e3ad76fd2a79e02c2a6ce5261b3dfa140ee3f86ef1e1143c62c168b9c6c9e0b95f72726a2c8b4bad93a3f05aab88c6dc1d63' + 'SKIP' + 'c4a6c72ea09b58a44fcb8918cfada600467f10f99a02b53d2436ac68295e73c8daf9ba0a8bc7160ba1e28e87f032ee034435ebe40af35b6e2fe9fa4607581358' + 'c1168ec913f1fbb0675915d4fd865ec9a8e8573f6c8aedcb6e68166f61f11aeaececc7548d54d78134843c0102c57d6350973f6d3027d0ffdae52a5c57a7f601' + 'ed8758920b98003094c79824a9304abbb8ddd40b1a0e1d294093f9b1df81fe7af0770dce1fb64345734ba20eacea52cc6f4b439960b4cdffa808d401994a0e95') + +prepare() { + export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}" + cd ghidra-Ghidra_${pkgver}_build + + # Copy needed libraries into flat repo folder + install -Dm 644 ../dex2jar-${_d2j}/lib/dex-*.jar \ + ../AXMLPrinter2.jar \ + -t dependencies/flatRepo + + # YAJSW expects this symlink + ln -sf ghidra-Ghidra_${pkgver}_build ../ghidra.bin + install -Dm 644 ../yajsw-beta-${_yajsw}.zip -t dependencies/GhidraServer + + # Add FID datasets + install -Dm 644 ../ghidra-data/FunctionID/*.fidb -t Ghidra/Features/FunctionID/src/main/fidb + + # Ignore lack of licensing for YAJSW zip, packed FID datasets, and the native binaries + sed -i '/FileTree tree/a\\t\texclude "yajsw-stable-**.zip"\n\t\texclude "src/main/fidb/**.fidb"\n\t\texclude "os/linux64/**"' gradle/support/ip.gradle +} + +build() { + export GRADLE_HOME="$(pwd)/usr/share/java/gradle/" + export PATH="$(pwd)/usr/share/java/gradle/bin/:${PATH}" + cd ghidra-Ghidra_${pkgver}_build + gradle yajswDevUnpack + gradle buildNatives_linux_x86_64 + gradle sleighCompile + gradle buildGhidra +} + +package() { + cd ghidra-Ghidra_${pkgver}_build + + # Extract built archive into destination folder + install -d "${pkgdir}"/{opt,usr/bin} + _appver=$(grep -oP '(?<=^application.version=).*$' Ghidra/application.properties) + _relname=$(grep -oP '(?<=^application.release.name=).*$' Ghidra/application.properties) + unzip -u "build/dist/ghidra_${_appver}_${_relname}"_*_linux_x86_64.zip -d "${pkgdir}"/opt + + # Simplify some directory and binary names + mv "${pkgdir}"/opt/ghidra{_*,} + ln -s /opt/ghidra/ghidraRun "${pkgdir}"/usr/bin/ghidra + ln -s /opt/ghidra/support/analyzeHeadless "${pkgdir}"/usr/bin/ghidra-analyzeHeadless +} + +# vim: ts=2 sw=2 et: