summaryrefslogtreecommitdiff
path: root/homebrew/vavrdiasm/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/vavrdiasm/patches.sh')
-rwxr-xr-xhomebrew/vavrdiasm/patches.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/homebrew/vavrdiasm/patches.sh b/homebrew/vavrdiasm/patches.sh
new file mode 100755
index 000000000..318c90672
--- /dev/null
+++ b/homebrew/vavrdiasm/patches.sh
@@ -0,0 +1,24 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/Makefile b/Makefile
+index 3b61942..f1c94fc 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ PROGNAME = vavrdisasm
+-PREFIX = /usr
++PREFIX ?= /usr
+ BINDIR = $(PREFIX)/bin
+
+ ################################################################################
+@@ -35,7 +35,8 @@ test: $(PROGNAME)
+ python2 crazy_test.py
+
+ install: $(PROGNAME)
+- install -D -s -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
++ mkdir -p $(DESTDIR)$(BINDIR)
++ install -s -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
+
+ uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/$(PROGNAME)
+EOF