Created
December 20, 2016 23:59
-
-
Save jonathonf/fcf3eb1fc978ad484edc33f00158c5a7 to your computer and use it in GitHub Desktop.
Fix depends for Hopper's Arch package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
set -x | |
declare -r pkgver=3.13.0 | |
declare -r pkgrel=1 | |
declare -r curdir=$(pwd) | |
declare -r workdir=$(mktemp -d) | |
wget -c "https://d1f8bh81yd16yv.cloudfront.net/hopper-${pkgver}-${pkgrel}-x86_64.pkg.tar.xz" | |
tar -xf "hopper-${pkgver}-${pkgrel}-x86_64.pkg.tar.xz" -C "${workdir}" | |
cd "${workdir}" | |
patch -b <<EOF | |
--- .PKGINFO | |
+++ .PKGINFO | |
@@ -1,4 +1,4 @@ | |
pkgname = hopperv3 | |
-pkgver = ${pkgver}-${pkgrel} | |
+pkgver = ${pkgver}-${pkgrel}.1 | |
pkgdesc = Reverse engineering tool that lets you disassemble and decompile 32/64 bits intel and ARM executables | |
url = http://www.hopperapp.com | |
@@ -8,23 +8,9 @@ | |
arch = x86_64 | |
license = Commercial | |
-depend = bash | |
-depend = qt5-base | |
-depend = qt5-connectivity | |
-depend = qt5-graphicaleffects | |
-depend = qt5-imageformats | |
-depend = qt5-location | |
-depend = qt5-multimedia | |
-depend = qt5-svg | |
-depend = qt5-tools | |
-depend = qt5-translations | |
-depend = qt5-webkit | |
-depend = qt5-websockets | |
-depend = qt5-x11extras | |
-depend = qt5-xmlpatterns | |
-depend = graphviz | |
-depend = xdg-utils | |
-depend = libtiff | |
+depend = hicolor-icon-theme | |
+depend = libbsd | |
depend = python2 | |
+depend = qt5-base | |
makepkgopt = strip | |
makepkgopt = docs | |
makepkgopt = libtool | |
EOF | |
fakeroot tar -Jcf "${curdir}/hopper-${pkgver}-${pkgrel}.1-x86_64.pkg.tar.xz" usr .PKGINFO .INSTALL | |
cd "${curdir}" | |
rm -fR "${workdir}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment