diff options
author | Dugan Chen <dugan [underscore] c [at] fastmail [dot] fm> | 2011-08-28 10:58:20 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-28 10:58:20 -0300 |
commit | da307300ca54ce62e197beebc68fa1d15783aa67 (patch) | |
tree | 6a8fbcfcab261f23745b372e3869660f9e1bbc74 /development | |
parent | 96a787d93b429aaa300a15d82b38010391abbeca (diff) | |
download | slackbuilds-da307300ca54ce62e197beebc68fa1d15783aa67.tar.gz |
development/love: Added (Lua 2D game development framework)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/love/README | 3 | ||||
-rw-r--r-- | development/love/love.SlackBuild | 81 | ||||
-rw-r--r-- | development/love/love.info | 10 | ||||
-rw-r--r-- | development/love/slack-desc | 19 |
4 files changed, 113 insertions, 0 deletions
diff --git a/development/love/README b/development/love/README new file mode 100644 index 0000000000..0cc0525666 --- /dev/null +++ b/development/love/README @@ -0,0 +1,3 @@ +LÖVE is a framework for developing 2D games in Lua. + +This requires lua, DevIL, physfs, libmodplug and OpenAL. diff --git a/development/love/love.SlackBuild b/development/love/love.SlackBuild new file mode 100644 index 0000000000..b97bf16695 --- /dev/null +++ b/development/love/love.SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# Slackware build script for LÖVE + +# Written by Dugan Chen (dugan [underscore] c [at] fastmail [dot] fm) + +PRGNAM=love +VERSION=${VERSION:-0.7.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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 + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-HEAD +tar xvf $CWD/$PRGNAM-$VERSION-linux-src.tar.gz +cd $PRGNAM-HEAD +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + license.txt readme.txt \ + $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/love/love.info b/development/love/love.info new file mode 100644 index 0000000000..04e399130f --- /dev/null +++ b/development/love/love.info @@ -0,0 +1,10 @@ +PRGNAM="love" +VERSION="0.7.2" +HOMEPAGE="http://love2d.org" +DOWNLOAD="https://bitbucket.org/rude/love/downloads/love-0.7.2-linux-src.tar.gz" +MD5SUM="c3e678606bb9a870c31168e85b269e7e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Dugan Chen" +EMAIL="dugan [underscore] c [at] fastmail [dot] fm" +APPROVED="Niels Horn" diff --git a/development/love/slack-desc b/development/love/slack-desc new file mode 100644 index 0000000000..654b66ffa1 --- /dev/null +++ b/development/love/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 ':'. + + |-----handy-ruler------------------------------------------------------| +love: love (Lua 2D game development framework) +love: +love: Hi there! LÖVE is an *awesome* framework you can use to make 2D games +love: in Lua. It's free, open source, and works on Windows, Mac OS X and +love: Linux. +love: +love: http://love2d.org +love: +love: +love: +love: |