# Contributor: August Klein # Maintainer: August Klein pkgname=sdl2 pkgver=2.0.9 pkgrel=1 pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics" url="https://www.libsdl.org" arch="all" license="Zlib" depends_dev="directfb-dev" makedepends="cmake alsa-lib-dev directfb-dev libxcursor-dev libxrandr-dev libxrender-dev mesa-dev libxscrnsaver-dev libxi-dev libx11-dev libxext-dev libusb-dev libxkbcommon-dev wayland-dev wayland-protocols" subpackages="$pkgname-dev" source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz" options="!check" # No good way to run the available tests builddir="$srcdir/SDL2-$pkgver" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build # NOTE: Please do not remove the -DVIDEO_DIRECTFB=ON flag. # Some apps, used for booting Alpine derivatives, require this to function! cmake "$builddir" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DSDL_TEST=OFF \ -DALSA=ON \ -DCLOCK_GETTIME=ON \ -DARTS=OFF \ -DESD=OFF \ -DNAS=OFF \ -DRPATH=OFF \ -DVIDEO_X11=ON \ -DVIDEO_DIRECTFB=ON \ -DVIDEO_WAYLAND=ON make } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10 SDL2-2.0.9.tar.gz"