Skip to content

Commit 992fb8c

Browse files
committed
Fix or add missing premake workaround
1 parent 88a6265 commit 992fb8c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

plugins-dep/package/camomile/01_workaround-missing-premake.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ index 5290d5a..6db0525 100755
77
fi
88

99
+if [ ! -f premake ]; then
10-
+ wget https://github.com/kunitoki/juced/raw/master/tools/linux/premake; chmod +x premake
10+
+ mkdir tmp; cd tmp && wget --quiet http://archive.ubuntu.com/ubuntu/pool/universe/p/premake/premake_3.7-1_amd64.deb && dpkg -x premake_3.7-1_amd64.deb . && mv ./usr/bin/premake ../ && cd .. && rm -rf tmp
1111
+fi
1212
+PREMAKE=$(pwd)/premake
1313
+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/scripts/premake-update.sh b/premake-update.sh
2+
index 5290d5a..6db0525 100755
3+
--- a/scripts/premake-update.sh
4+
+++ b/scripts/premake-update.sh
5+
@@ -26,9 +26,14 @@ if [ -d ../libs ]; then
6+
cd ..
7+
fi
8+
9+
+if [ ! -f premake ]; then
10+
+ mkdir tmp; cd tmp && wget --quiet http://archive.ubuntu.com/ubuntu/pool/universe/p/premake/premake_3.7-1_amd64.deb && dpkg -x premake_3.7-1_amd64.deb . && mv ./usr/bin/premake ../ && cd .. && rm -rf tmp
11+
+fi
12+
+PREMAKE=$(pwd)/premake
13+
+
14+
run_premake()
15+
{
16+
- premake --os $1 --target gnu --cc gcc
17+
+ $PREMAKE --os $1 --target gnu --cc gcc
18+
19+
if [ $MAC == 1 ]; then
20+
sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make`

0 commit comments

Comments
 (0)