#Maintainer: Dimitris Tzemos pkgname=SDL2 pkgver=2.0.4 pkgrel=1dj source=("http://www.libsdl.org/release/SDL2-${pkgver}.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname #docs=() url="http://www.libsdl.org" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "SDL2 (Simple DirectMedia Layer Version 2)" "Simple DirectMedia Layer is a cross-platform development library" "designed to provide low-level access to audio, keyboard, mouse," "joystick, and graphics hardware ia via OpenGL." "SDL is written in C and works natively with C++." "" "Homepage: http://libsdl.org" ) build() { cd $SRC/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$arch-slackware-linux make || return 1 make install DESTDIR=$PKG || return 1 #delete static libs rm $PKG/usr/lib${LIBDIRSUFFIX}/libSDL2.a $PKG/usr/lib${LIBDIRSUFFIX}/libSDL2_test.a $PKG/usr/lib${LIBDIRSUFFIX}/libSDL2main.a }