diff --git a/plugins-dep/package/camomile/01_workaround-missing-premake.patch b/plugins-dep/package/camomile/01_workaround-missing-premake.patch index cd9c6627..92f2f169 100644 --- a/plugins-dep/package/camomile/01_workaround-missing-premake.patch +++ b/plugins-dep/package/camomile/01_workaround-missing-premake.patch @@ -1,20 +1,24 @@ -diff --git a/scripts/premake-update.sh b/premake-update.sh -index 5290d5a..6db0525 100755 +diff --git a/scripts/premake-update.sh b/scripts/premake-update.sh +index 5290d5a..56fdde5 100755 --- a/scripts/premake-update.sh +++ b/scripts/premake-update.sh -@@ -26,9 +26,14 @@ if [ -d ../libs ]; then +@@ -26,9 +26,18 @@ if [ -d ../libs ]; then cd .. fi - -+if [ ! -f premake ]; then -+ wget https://github.com/kunitoki/juced/raw/master/tools/linux/premake; chmod +x premake + ++if ! which premake > /dev/null; then ++ if [ ! -f premake ]; then ++ 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 ++ fi ++ PREMAKE=$(pwd)/premake ++else ++ PREMAKE=premake +fi -+PREMAKE=$(pwd)/premake + run_premake() { - premake --os $1 --target gnu --cc gcc + $PREMAKE --os $1 --target gnu --cc gcc - + if [ $MAC == 1 ]; then sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make` diff --git a/plugins/package/distrho-ports-labs/01_workaround-missing-premake.patch b/plugins/package/distrho-ports-labs/01_workaround-missing-premake.patch index c4a60034..92f2f169 100644 --- a/plugins/package/distrho-ports-labs/01_workaround-missing-premake.patch +++ b/plugins/package/distrho-ports-labs/01_workaround-missing-premake.patch @@ -1,20 +1,24 @@ -diff --git a/scripts/premake-update.sh b/premake-update.sh -index 5290d5a..6db0525 100755 +diff --git a/scripts/premake-update.sh b/scripts/premake-update.sh +index 5290d5a..56fdde5 100755 --- a/scripts/premake-update.sh +++ b/scripts/premake-update.sh -@@ -26,9 +26,14 @@ if [ -d ../libs ]; then +@@ -26,9 +26,18 @@ if [ -d ../libs ]; then cd .. fi - -+if [ ! -f premake ]; then -+ 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 + ++if ! which premake > /dev/null; then ++ if [ ! -f premake ]; then ++ 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 ++ fi ++ PREMAKE=$(pwd)/premake ++else ++ PREMAKE=premake +fi -+PREMAKE=$(pwd)/premake + run_premake() { - premake --os $1 --target gnu --cc gcc + $PREMAKE --os $1 --target gnu --cc gcc - + if [ $MAC == 1 ]; then sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make` diff --git a/plugins/package/mod-tal-noisemaker/01_workaround-missing-premake.patch b/plugins/package/mod-tal-noisemaker/01_workaround-missing-premake.patch new file mode 100644 index 00000000..92f2f169 --- /dev/null +++ b/plugins/package/mod-tal-noisemaker/01_workaround-missing-premake.patch @@ -0,0 +1,24 @@ +diff --git a/scripts/premake-update.sh b/scripts/premake-update.sh +index 5290d5a..56fdde5 100755 +--- a/scripts/premake-update.sh ++++ b/scripts/premake-update.sh +@@ -26,9 +26,18 @@ if [ -d ../libs ]; then + cd .. + fi + ++if ! which premake > /dev/null; then ++ if [ ! -f premake ]; then ++ 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 ++ fi ++ PREMAKE=$(pwd)/premake ++else ++ PREMAKE=premake ++fi ++ + run_premake() + { +- premake --os $1 --target gnu --cc gcc ++ $PREMAKE --os $1 --target gnu --cc gcc + + if [ $MAC == 1 ]; then + sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make`