diff options
-rw-r--r-- | development/love-legacy080/README | 9 | ||||
-rw-r--r-- | development/love-legacy080/love-legacy080.SlackBuild | 86 | ||||
-rw-r--r-- | development/love-legacy080/love-legacy080.info | 10 | ||||
-rw-r--r-- | development/love-legacy080/slack-desc | 19 |
4 files changed, 124 insertions, 0 deletions
diff --git a/development/love-legacy080/README b/development/love-legacy080/README new file mode 100644 index 000000000000..b686f3dc82ac --- /dev/null +++ b/development/love-legacy080/README @@ -0,0 +1,9 @@ +LÖVE is a framework for developing 2D games in Lua. + +love-legacy080 is an older (0.8.0) version, for games written using the +0.8 API. It should not be used for developing new code (use the regular +love package for that instead). + +Normally, games written with LÖVE are started with "love gamename.love". +For games that need 0.8.0, start them with "love-0.8.0 gamename.love" +instead. diff --git a/development/love-legacy080/love-legacy080.SlackBuild b/development/love-legacy080/love-legacy080.SlackBuild new file mode 100644 index 000000000000..a152b36f6e6b --- /dev/null +++ b/development/love-legacy080/love-legacy080.SlackBuild @@ -0,0 +1,86 @@ +#!/bin/sh + +# Slackware build script for LÖVE (legacy 0.8 version) + +# Written by Dugan Chen (thedoogster [at] gmail [dot] com) + +# Modified for 0.8.0 legacy version by B. Watson (yalhcru@gmail.com) + +# If you're packaging up a LÖVE game that needs this version (won't work +# with 0.9.x), make sure the shebang line in the .love file says: +# #!/usr/bin/env love-0.8.0 +# See mari0.SlackBuild for an example. + +PRGNAM=love-legacy080 +VERSION=${VERSION:-0.8.0} +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 + +SRCNAM=love + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION-linux-src.tar.gz +cd $SRCNAM-$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 640 -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 \ + --program-suffix=-0.8.0 \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a changes.txt license.txt readme.md $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-legacy080/love-legacy080.info b/development/love-legacy080/love-legacy080.info new file mode 100644 index 000000000000..a20bf93e4da5 --- /dev/null +++ b/development/love-legacy080/love-legacy080.info @@ -0,0 +1,10 @@ +PRGNAM="love-legacy080" +VERSION="0.8.0" +HOMEPAGE="http://love2d.org" +DOWNLOAD="https://bitbucket.org/rude/love/downloads/love-0.8.0-linux-src.tar.gz" +MD5SUM="9db9c32585fc7c7da3eba7e438783099" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="lua DevIL physfs libmodplug OpenAL" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/development/love-legacy080/slack-desc b/development/love-legacy080/slack-desc new file mode 100644 index 000000000000..981a843f6d72 --- /dev/null +++ b/development/love-legacy080/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-legacy080: love-legacy080 (Lua 2D game development framework) +love-legacy080: +love-legacy080: Hi there! LÖVE is an *awesome* framework you can use to make 2D games +love-legacy080: in Lua. It's free, open source, and works on Windows, Mac OS X and +love-legacy080: Linux. +love-legacy080: +love-legacy080: love-legacy080 is an older (0.8.0) version, for games written using +love-legacy080: the 0.8 API. +love-legacy080: +love-legacy080: +love-legacy080: |