summaryrefslogtreecommitdiffstats
path: root/src/mxe-conf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/mxe-conf.mk')
-rw-r--r--src/mxe-conf.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk
index 77e28e3..9adc685 100644
--- a/src/mxe-conf.mk
+++ b/src/mxe-conf.mk
@@ -100,4 +100,12 @@ define $(PKG)_BUILD_$(BUILD)
#create readonly directory to force wine to fail
$(INSTALL) -m444 -d "$$WINEPREFIX"
+
+ #create script "wine" in a directory which is in PATH
+ mkdir -p '$(PREFIX)/$(BUILD)/bin/'
+ (echo '#!/usr/bin/env bash'; \
+ echo 'exit 1'; \
+ ) \
+ > '$(PREFIX)/$(BUILD)/bin/wine'
+ chmod 0755 '$(PREFIX)/$(BUILD)/bin/wine'
endef