blob: 402fc8604fae20431dbb6c7a5ef76f56e13f24b8 (
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
44
45
46
|
# Maintainer: HurricanePootis <hurricanepootis@protonamil.com>
# Contributor: VitalyR <vr AT vitalyr DOT com>
# Contributor: HurricanePootis <hurricanepootis@protonmail.com>
# Contributor: Christer Solskogen <christer.solskogen@gmail.com>
pkgname=sdl3
pkgver=3.1.6
epoch=1
pkgrel=3
pkgdesc="Simple Directmedia Layer (Version 3)"
arch=('x86_64' 'aarch64' 'armv7h')
url="https://www.libsdl.org"
license=('Zlib')
depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'hidapi' 'libusb')
makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon'
'wayland-protocols' 'ibus' 'fcitx5' 'libxss' 'cmake' 'jack' 'ninja' 'pipewire'
'libdecor' 'git' 'sndio')
optdepends=('alsa-lib: ALSA audio driver'
'libpulse: PulseAudio audio driver'
'jack: JACK audio driver'
'pipewire: PipeWire audio driver'
'sndio: MIDI audio driver'
'libdecor: Wayland client decorations')
source=("https://github.com/libsdl-org/SDL/archive/refs/tags/preview-${pkgver}.tar.gz")
sha256sums=('5da5e265c150b954d007bf1465b155d9df1d0d52f10115a49bb918dc8fe2826a')
build() {
cd "$srcdir"
CFLAGS+=" -ffat-lto-objects"
cmake -S SDL-preview-${pkgver} \
-B build -G Ninja \
-D CMAKE_BUILD_TYPE=None \
-D SDL_HIDAPI_LIBUSB=ON \
-D CMAKE_INSTALL_PREFIX=/usr \
-D SDL_STATIC=OFF \
-D SDL_RPATH=OFF \
-D SDL_TEST_LIBRARY=OFF
cmake --build build
}
package() {
cd "$srcdir"
DESTDIR="${pkgdir}" cmake --install build
mv "${pkgdir}/usr/share/licenses/SDL3" "${pkgdir}/usr/share/licenses/sdl3"
}
|