aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorSean Eubanks <seanmeu@protonmail.com>2023-05-26 00:29:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-27 08:08:50 +0700
commit3d7f54431aed0ee30d117424332c0348570653a1 (patch)
treee1f77c9cdb830e40821a6b6a059f0d0631b2e745 /development
parenta18d8de73774cc8054c2d3c3bd3c97a92f276d29 (diff)
development/premake5: Added (build configuration tool)
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/premake5/README8
-rw-r--r--development/premake5/premake5.SlackBuild104
-rw-r--r--development/premake5/premake5.info10
-rw-r--r--development/premake5/slack-desc19
4 files changed, 141 insertions, 0 deletions
diff --git a/development/premake5/README b/development/premake5/README
new file mode 100644
index 000000000000..8ae81ae60d85
--- /dev/null
+++ b/development/premake5/README
@@ -0,0 +1,8 @@
+premake5 (build configuration tool)
+
+Premake is a command line utility which reads a scripted definition of
+a software project and, most commonly, uses it to generate project
+files for toolsets like Visual Studio, Xcode, or GNU Make.
+
+Use the built-in general purpose Lua scripting engine (plus lots of
+extras) to make build configuration tasks a breeze.
diff --git a/development/premake5/premake5.SlackBuild b/development/premake5/premake5.SlackBuild
new file mode 100644
index 000000000000..9d3b439c024d
--- /dev/null
+++ b/development/premake5/premake5.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+# Slackware build script for premake5
+
+# Copyright 2023 Sean Eubanks <seanmeu@protonmail.com>, Cheraw, SC, USA
+# All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the “Software”), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=premake5
+VERSION=${VERSION:-5.0.0_beta2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+SRC_VERSION=$(echo $VERSION | tr _ -)
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ 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
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+DOCS="BUILD.txt CHANGES.txt LICENSE.txt README.md CONTRIBUTORS.txt"
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf premake-$SRC_VERSION-src
+unzip $CWD/premake-$SRC_VERSION-src.zip
+cd premake-$SRC_VERSION-src
+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 {} \;
+
+cd build/gmake2.unix
+make config=release
+cd -
+
+install -D -m 0755 bin/release/premake5 $PKG/usr/bin/premake5
+
+mkdir -p $PKG/usr/share/$PRGNAM
+cp -a tests $PKG/usr/share/$PRGNAM/
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/premake5/premake5.info b/development/premake5/premake5.info
new file mode 100644
index 000000000000..af73ba53e03c
--- /dev/null
+++ b/development/premake5/premake5.info
@@ -0,0 +1,10 @@
+PRGNAM="premake5"
+VERSION="5.0.0_beta2"
+HOMEPAGE="https://premake.github.io/"
+DOWNLOAD="https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-src.zip"
+MD5SUM="23b436c9b740f04e57831c76b18b76bf"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="lua"
+MAINTAINER="Sean Eubanks"
+EMAIL="seanmeu@protonmail.com"
diff --git a/development/premake5/slack-desc b/development/premake5/slack-desc
new file mode 100644
index 000000000000..eec5745f1fd7
--- /dev/null
+++ b/development/premake5/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+premake5: premake5 (build configuration tool)
+premake5:
+premake5: Premake is a command line utility which reads a scripted definition
+premake5: of a software project and, most commonly, uses it to generate
+premake5: project files for toolsets like Visual Studio, Xcode, or GNU Make.
+premake5: Use the built-in general purpose Lua scripting engine (plus lots of
+premake5: extras) to make build configuration tasks a breeze.
+premake5:
+premake5:
+premake5:
+premake5: https://premake.github.io