* update sdl2 to 2.28.0-1

This commit is contained in:
Alexander Baldeck 2023-06-21 10:41:22 +02:00
parent 4803da29de
commit c2e8baf087

View File

@ -1,7 +1,7 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=sdl2
pkgver=2.26.5
pkgver=2.28.0
pkgrel=1
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -16,25 +16,19 @@ optdepends=('alsa-lib: ALSA audio driver'
'jack: JACK audio driver'
'pipewire: PipeWire audio driver'
'libdecor: Wayland client decorations')
options=(!distcc)
source=("https://github.com/libsdl-org/SDL/releases/download/release-${pkgver}/SDL2-${pkgver}.tar.gz"{,.sig})
sha512sums=('0f37b443950bc89c3f3add2fc9a9970f42b47e933c106a1d676d1715c520125d5725ffcb9ff85bcf66ac3ff78d9d43d994f9c1935b7c0fd7951e10e251936bcc'
sha512sums=('77b258c03202dbd40e386f1d0619068b9549c2b0ad186f67cb19e12078c6f269b019dcd6bf422db4c5135a7c6c5920de9205105c411fa72d56caedd6d2dbcdbd'
'SKIP')
validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga
options=(!distcc)
build() {
CFLAGS+=" -ffat-lto-objects"
case "${CARCH}" in
# altivec support cannot handle little endian
powerpc64le) _cmake_options=(-DSDL_ALTIVEC=OFF) ;;
esac
cmake -S SDL2-${pkgver} -B build -G Ninja \
-D SDL_HIDAPI_LIBUSB=ON \
-D CMAKE_INSTALL_PREFIX=/usr \
-D SDL_STATIC=OFF \
-D SDL_RPATH=OFF ${_cmake_options}
-D SDL_RPATH=OFF
cmake --build build
}