# Maintainer: PktSurf app=sdl2 version=2.26.5 build=1sml homepage="https://www.sdl.org" download="https://www.libsdl.org/release/SDL2-$version.tar.gz" desc="C Library providing low-level I/O access to hardware devices via OpenGL and 2D framebuffer" requires="alsa-lib libx11 libxcursor libxext libxrender libxinerama mesa" prepbuilddir() { mkandenterbuilddir rm -rf SDL2-$version tar xf $srcdir/SDL2-$version.tar.?z* cd SDL2-$version fixbuilddirpermissions } build() { mkdir -p smbuild && cd smbuild cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \ -DSDL_STATIC=OFF \ -DPULSEAUDIO=OFF make make install DESTDIR=$pkg cp ../LICENSE.txt $pkgdocs/ mkfinalpkg } sha512sums=" 4efa3b68d410928bcba65909e54ff75ff95fb4c0a07f40f7aebbcec633b72026c33fc36f5f0d9ddd1913687860abeebc1373ba835c8dca7f0ad48c5e158d5b2c SDL2-2.26.5.tar.lz "