blob: 2038e2e7fde8f2efcceb36fd6a046f5acfbe6fbe (
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
|
#!/bin/mkpkg
# description: Simple DirectMedia Layer 2
# url: https://www.libsdl.org
name=sdl2
version=2.32.10
release=1
depends=(wayland wayland-protocols libxkbcommon)
source=(https://github.com/libsdl-org/SDL/releases/download/release-$version/SDL2-$version.tar.gz)
sha256sums=(
"5f5993c530f084535c65a6879e9b26ad441169b3e25d789d83287040a9ca5165"
)
build() {
cmake -S SDL2-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D SDL_WAYLAND=ON \
-D SDL_WAYLAND_SHARED=ON \
-D SDL_X11=OFF \
-D SDL_CLOCK_GETTIME=ON \
-D SDL_RPATH=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf $PKG/usr/share/licenses
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|