IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.2.6 PROGNAME="sdl $VERSION" DESC="\ sdl (Simple DirectMedia Layer library) \n\ \n\ This is the Simple DirectMedia Layer, a generic API that provides low \n\ level access to audio, keyboard, mouse, joystick, 3D hardware via \n\ OpenGL, and 2D framebuffer across multiple platforms. \n\ \n\ This library links against libaudiofile (L series), libartsc (KDE \n\ series), libesd (GNOME series), and the X11 libraries. Make sure all \n\ of these are installed if you're planning to use SDL (a full \n\ installation will cover all of the prerequisites)." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/sdl PKGNAME=sdl-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/SDL-$VERSION.tar.gz cd SDL-$VERSION/ chown -R root.root . CFLAGS=-O2 \ ./configure --prefix=/usr make } install() { make install DESTDIR=/package-sdl mkdir -p /package-sdl/usr/doc/SDL-$VERSION/html cp -a docs/index.html /package-sdl/usr/doc/SDL-$VERSION cp -a docs/html/*.html /package-sdl/usr/doc/SDL-$VERSION/html cp -a BUGS COPYING CREDITS INSTALL README* TODO WhatsNew \ /package-sdl/usr/doc/SDL-$VERSION ( cd /package-sdl/usr/man/man3 rm -f *.gz gzip -9 *.3 ) } attributes() { chown -R root.bin $PKG/package-sdl/usr/bin/ } special() { cd $PKG mv package-sdl/* ./ rmdir package-sdl cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-sdl/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }