aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-18 01:57:14 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-02 19:28:33 +0700
commitbf8a4b2811d4537270f79aff769bb40ce955c32c (patch)
tree318053249d0db8e102f8f344f73581ea660da0ff /development
parented4324ee2e2fd106438b0daa02bee2cddcf6b8dc (diff)
development/premake: Build w/bundled lua, rm REQUIRES="lua".
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/premake/premake.SlackBuild17
-rw-r--r--development/premake/premake.info2
2 files changed, 8 insertions, 11 deletions
diff --git a/development/premake/premake.SlackBuild b/development/premake/premake.SlackBuild
index 8c8ffd206670..222efa0b5a8e 100644
--- a/development/premake/premake.SlackBuild
+++ b/development/premake/premake.SlackBuild
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20241018 bkw: Modified by SlackBuilds.org, BUILD=2: fix building with
+# premake's own bundled copy of lua-5.1.4; remove REQUIRES="lua".
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=premake
VERSION=${VERSION:-4.4_beta5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -77,11 +77,8 @@ rm -rf $PRGNAM-$SRC_VERSION
unzip $CWD/$PRGNAM-$SRC_VERSION-src.zip
cd $PRGNAM-$SRC_VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# prepare sources
sed -i -e "s|^\ \ INCLUDES.*| INCLUDES +=|" build/gmake.unix/Premake4.make
@@ -89,7 +86,7 @@ sed -i -e "s|\$(ARCH)\ ||" build/gmake.unix/Premake4.make
sed -i -e "s|-Os|${SLKCFLAGS}|" build/gmake.unix/Premake4.make
cd build/gmake.unix
-make config=release
+make config=release CFLAGS="$SLKCFLAGS -I../../src/host/lua-5.1.4/src/"
cd -
install -D -m 0755 bin/release/premake4 $PKG/usr/bin/premake4
diff --git a/development/premake/premake.info b/development/premake/premake.info
index 9f6c95fe066c..5e572f1baa27 100644
--- a/development/premake/premake.info
+++ b/development/premake/premake.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://ponce.cc/slackware/sources/repo/premake-4.4-beta5-src.zip"
MD5SUM="4fe6eb000726d75621a99080b2466d4d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="lua"
+REQUIRES=""
MAINTAINER="Matteo Bernardini"
EMAIL="ponce@slackbuilds.org"