diff options
-rw-r--r-- | development/premake/README | 10 | ||||
-rw-r--r-- | development/premake/premake.SlackBuild | 79 | ||||
-rw-r--r-- | development/premake/premake.info | 10 | ||||
-rw-r--r-- | development/premake/slack-desc | 19 |
4 files changed, 118 insertions, 0 deletions
diff --git a/development/premake/README b/development/premake/README new file mode 100644 index 0000000000..a203db297c --- /dev/null +++ b/development/premake/README @@ -0,0 +1,10 @@ +premake (build configuration tool) + +Describe your C, C++, or C# software project using a simple, easy to +read syntax and let Premake generate the project files. Premake allows +you to manage your project configuration in one place and still +support those pesky IDE-addicted Windows coders. It also provides a +complete Lua scripting environment, enabling the automation of +complex configuration tasks. + +This requires lua. diff --git a/development/premake/premake.SlackBuild b/development/premake/premake.SlackBuild new file mode 100644 index 0000000000..615cf32770 --- /dev/null +++ b/development/premake/premake.SlackBuild @@ -0,0 +1,79 @@ +#!/bin/sh + +# Slackware build script for premake +# Written by ponce <matteo.bernardini@gmail.com> + +PRGNAM=premake +VERSION=${VERSION:-4.4_beta3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRC_VERSION=$(echo $VERSION | tr _ -) + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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.txt" + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$SRC_VERSION +unzip $CWD/$PRGNAM-$SRC_VERSION-src.zip +cd $PRGNAM-$SRC_VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; + +# prepare sources +sed -i -e "s|^\ \ INCLUDES.*| INCLUDES +=|" build/gmake.unix/Premake4.make +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 +cd - + +install -D -m 0755 bin/release/premake4 $PKG/usr/bin/premake4 + +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:-tgz} diff --git a/development/premake/premake.info b/development/premake/premake.info new file mode 100644 index 0000000000..b853af654c --- /dev/null +++ b/development/premake/premake.info @@ -0,0 +1,10 @@ +PRGNAM="premake" +VERSION="4.4_beta3" +HOMEPAGE="http://industriousone.com/premake" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/premake-4.4-beta3-src.zip" +MD5SUM="1f0e00f137f1a635ce8b578223997218" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="ponce" +EMAIL="matteo.bernardini@gmail.com" +APPROVED="Niels Horn" diff --git a/development/premake/slack-desc b/development/premake/slack-desc new file mode 100644 index 0000000000..2722bbcff3 --- /dev/null +++ b/development/premake/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------------------------------------------------------| +premake: premake (build configuration tool) +premake: +premake: Describe your C, C++, or C# software project using a simple, easy to +premake: read syntax and let Premake generate the project files. Premake allows +premake: you to manage your project configuration in one place and still +premake: support those pesky IDE-addicted Windows coders. It also provides a +premake: complete Lua scripting environment, enabling the automation of +premake: complex configuration tasks. +premake: +premake: homepage: http://industriousone.com/premake +premake: |