diff options
author | Steven Pledger <piratesmack@ymail.com> | 2010-05-12 23:29:20 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:29:20 +0200 |
commit | 9a5550b663f6ee1b774eddd51a914cdccadc31f5 (patch) | |
tree | c92789b541f37282b016fa6499ffc83fe4ddfd58 /games | |
parent | 1edf0ebea0c957895f8751129f97c957f976b62e (diff) | |
download | slackbuilds-9a5550b663f6ee1b774eddd51a914cdccadc31f5.tar.gz |
games/gens: Added to 12.2 repository
Diffstat (limited to 'games')
-rw-r--r-- | games/gens/README | 1 | ||||
-rw-r--r-- | games/gens/gens.SlackBuild | 65 | ||||
-rw-r--r-- | games/gens/gens.info | 8 | ||||
-rw-r--r-- | games/gens/slack-desc | 19 |
4 files changed, 93 insertions, 0 deletions
diff --git a/games/gens/README b/games/gens/README new file mode 100644 index 0000000000..90fbfde2c9 --- /dev/null +++ b/games/gens/README @@ -0,0 +1 @@ +Gens is a win32/unix Sega Genesis / Sega CD / Sega 32X emulator. diff --git a/games/gens/gens.SlackBuild b/games/gens/gens.SlackBuild new file mode 100644 index 0000000000..2c9f3a6566 --- /dev/null +++ b/games/gens/gens.SlackBuild @@ -0,0 +1,65 @@ +#!/bin/sh + +# Slackware build script for gens +# Written by Steven Pledger (piratesmack@ymail.com) +# Script can be modified and redistibuted freely + +PRGNAM=gens +VERSION=2.15.5 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $TMP/$PRGNAM-$VERSION $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +( cd $PKG/usr/man || exit + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + BUGS INSTALL README AUTHORS COPYING \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; + +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.tgz + diff --git a/games/gens/gens.info b/games/gens/gens.info new file mode 100644 index 0000000000..e8dfb175b0 --- /dev/null +++ b/games/gens/gens.info @@ -0,0 +1,8 @@ +PRGNAM="gens" +VERSION="2.15.5" +HOMEPAGE="http://gens.consolemul.com/" +DOWNLOAD="http://downloads.sourceforge.net/gens/gens-2.15.5.tar.gz" +MD5SUM="1496a49be056d65bf76b52de62e932d7" +MAINTAINER="Steven Pledger" +EMAIL="piratesmack@ymail.com" +APPROVED="rworkman" diff --git a/games/gens/slack-desc b/games/gens/slack-desc new file mode 100644 index 0000000000..de1767dbea --- /dev/null +++ b/games/gens/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------------------------------------------------------| +gens: gens (Sega Emulator) +gens: +gens: Gens is a win32/unix Sega Genesis / Sega CD / Sega 32X emulator. +gens: +gens: http://gens.consolemul.com/ +gens: +gens: +gens: +gens: +gens: +gens: |