summaryrefslogtreecommitdiff
path: root/libs/sdl2/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sdl2/MAKEPKG')
-rw-r--r--libs/sdl2/MAKEPKG36
1 files changed, 36 insertions, 0 deletions
diff --git a/libs/sdl2/MAKEPKG b/libs/sdl2/MAKEPKG
new file mode 100644
index 0000000..2038e2e
--- /dev/null
+++ b/libs/sdl2/MAKEPKG
@@ -0,0 +1,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