# Maintainer: Christer Solskogen pkgname=sdl2-nox-git pkgver=2.24.0.r28.g277b033e7 pkgrel=1 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)" arch=('x86_64' 'aarch64' 'armv7h') url="https://www.libsdl.org" license=('MIT') depends=('libgl' 'libibus' ) makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon' 'wayland-protocols' 'ibus' 'fcitx5' 'libxss' 'jack' 'git' ) optdepends=('alsa-lib: ALSA audio driver' 'libpulse: PulseAudio audio driver' 'jack: JACK audio driver') source=("git+https://github.com/libsdl-org/SDL") provides=("sdl2=$pkgver") conflicts=(sdl2 sdl2-minimal-hg) sha512sums=('SKIP') pkgver() { cd SDL git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { mkdir -p build cd build ../SDL/configure --prefix=/usr \ --disable-arts --disable-esd --disable-nas \ --enable-pulseaudio-shared --enable-video-kmsdrm \ --without-x --disable-video-wayland --disable-video-rpi make } package() { cd build make install DESTDIR="$pkgdir" install -Dm644 ../SDL/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" chown -R root:root "$pkgdir" }