diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 14:56:12 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 14:56:12 +0200 |
commit | 879e5a785e0adf1ff35a467395a4a8fc4da26307 (patch) | |
tree | d3e3107a3c08907645898e1bdfac9ae8d0b4d78a /libraries/SDL_perl | |
parent | b6dd041f0f8eb5b46de7bbb97de260c36bd23b99 (diff) |
libraries/SDL_perl: Initial import
Diffstat (limited to 'libraries/SDL_perl')
-rw-r--r-- | libraries/SDL_perl/README | 2 | ||||
-rw-r--r-- | libraries/SDL_perl/SDL_perl.SlackBuild | 66 | ||||
-rw-r--r-- | libraries/SDL_perl/SDL_perl.info | 8 | ||||
-rw-r--r-- | libraries/SDL_perl/slack-desc | 7 |
4 files changed, 83 insertions, 0 deletions
diff --git a/libraries/SDL_perl/README b/libraries/SDL_perl/README new file mode 100644 index 000000000000..89c1b4cef43a --- /dev/null +++ b/libraries/SDL_perl/README @@ -0,0 +1,2 @@ +SDL_perl - Simple DirectMedia Library Bindings for Perl +This is glue (bindings) between SDL and Perl. diff --git a/libraries/SDL_perl/SDL_perl.SlackBuild b/libraries/SDL_perl/SDL_perl.SlackBuild new file mode 100644 index 000000000000..c415fafc1e02 --- /dev/null +++ b/libraries/SDL_perl/SDL_perl.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for SDL_perl +# Written by Erik Hanson erik@slackbuilds.org +# Modified by the SlackBuilds.org project + +set -e + +PRGNAM=SDL_perl +VERSION=1.20.0 +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" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# configure doesn't take prefix/sysconfdir/... but things land in +# the appropriate places anyway. +CFLAGS="$SLKCFLAGS" ./configure || exit 1 + +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mv $PKG/usr/share/man $PKG/usr/man +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +( cd $PKG + find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f + # No empty directories + find . -type d -depth -exec rmdir {} \; 2>/dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a BUGS CHANGELOG COPYING README TODO test/ $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.tgz diff --git a/libraries/SDL_perl/SDL_perl.info b/libraries/SDL_perl/SDL_perl.info new file mode 100644 index 000000000000..e7c709b3480b --- /dev/null +++ b/libraries/SDL_perl/SDL_perl.info @@ -0,0 +1,8 @@ +PRGNAM="SDL_perl" +VERSION="1.20.3" +HOMEPAGE="http://sdl.perl.org/" +DOWNLOAD="http://zarb.org/~gc/t/SDL_perl-1.20.0.tar.gz" +MD5SUM="041617aec124677083ecef04aa48f927" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="BP{k}" diff --git a/libraries/SDL_perl/slack-desc b/libraries/SDL_perl/slack-desc new file mode 100644 index 000000000000..2631512e5f30 --- /dev/null +++ b/libraries/SDL_perl/slack-desc @@ -0,0 +1,7 @@ +SDL_perl: SDL_perl - Simple DirectMedia Library Bindings for Perl +SDL_perl: +SDL_perl: SDL_perl is glue (bindings) between SDL and Perl. +SDL_perl: +SDL_perl: Homepage: http://sdl.perl.org/ +SDL_perl: +SDL_perl: |