blob: 38edcd06771bf6e510f6f0023ff3a3495ad3d662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Christer Solskogen <christer.solskogen@gmail.com>
pkgname=sdl2-git
pkgver=2.32.0.r31.gf0a8e09f7
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=('Zlib')
depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'hidapi' 'libusb')
makedepends=('alsa-lib' 'dbus' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon'
'wayland-protocols' 'ibus' 'libxss' 'cmake' 'jack' 'ninja' 'pipewire'
'libdecor' 'vulkan-driver' 'vulkan-headers' 'libsamplerate' 'git')
optdepends=('alsa-lib: ALSA audio driver'
'libpulse: PulseAudio audio driver'
'jack: JACK audio driver'
'pipewire: PipeWire audio driver'
'libdecor: Wayland client decorations')
source=("git+https://github.com/libsdl-org/SDL.git#branch=SDL2")
provides=('sdl2=$pkgver' 'sdl2-compat')
conflicts=('sdl2' 'sdl2-compat')
sha512sums=('SKIP')
validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga
pkgver() {
cd SDL
git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
CFLAGS+=" -ffat-lto-objects"
cmake -S SDL -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D SDL_RPI=OFF \
-D SDL_STATIC=OFF \
-D SDL_RPATH=OFF \
-D SDL_ASSERTIONS=disabled
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|