[arch-commits] Commit in sdl2/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Tue Jan 11 04:10:53 UTC 2022
Date: Tuesday, January 11, 2022 @ 04:10:53
Author: svenstaro
Revision: 434196
archrelease: copy trunk to extra-x86_64
Added:
sdl2/repos/extra-x86_64/PKGBUILD
(from rev 434195, sdl2/trunk/PKGBUILD)
Deleted:
sdl2/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 91 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 42 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-11 04:10:43 UTC (rev 434195)
+++ PKGBUILD 2022-01-11 04:10:53 UTC (rev 434196)
@@ -1,49 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-
-pkgname=sdl2
-pkgver=2.0.18
-pkgrel=3
-pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
-arch=('x86_64')
-url="https://www.libsdl.org"
-license=('MIT')
-depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'libibus' 'hidapi' 'libusb')
-makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon'
- 'wayland-protocols' 'ibus' 'fcitx' 'libxss' 'cmake' 'jack' 'ninja' 'pipewire'
- 'libdecor')
-optdepends=('alsa-lib: ALSA audio driver'
- 'libpulse: PulseAudio audio driver'
- 'jack: JACK audio driver'
- 'pipewire: PipeWire audio driver'
- 'libdecor: Wayland client decorations')
-source=("https://www.libsdl.org/release/SDL2-${pkgver}.tar.gz"{,.sig}
- sdl2-wayland1.20.patch::https://github.com/libsdl-org/SDL/pull/5092.patch)
-sha512sums=('8688b855ce15d574fb0726dd2a44109bb7b34d81c652c51025a32bf7eb7015ceb685834cf9fc3f97a2f5f5a3203f548ce6845420fafae7e5dc6bb9d11ce1740d'
- 'SKIP'
- 'efa2d01a5861f99597eac0cff7e67efc03bd3877d8ad53d711b1ab54a59f93ef5bc6ffe776b9ac7e3103688a56f79e7d0e4155852dedd0d1982a1e334a2f8d37')
-validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga
-
-prepare() {
- cd SDL2-${pkgver}
- patch -Np1 -i "$srcdir"/sdl2-wayland1.20.patch
-}
-
-build() {
- CFLAGS+=" -ffat-lto-objects"
- cmake -S SDL2-${pkgver} -B build -G Ninja \
- -D CMAKE_INSTALL_PREFIX=/usr \
- -D SDL_STATIC=OFF \
- -D SDL_DLOPEN=ON \
- -D SDL_RPATH=OFF
- cmake --build build
-}
-
-package() {
- DESTDIR="${pkgdir}" cmake --install build
-
- sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake
-
- install -Dm644 SDL2-${pkgver}/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: sdl2/repos/extra-x86_64/PKGBUILD (from rev 434195, sdl2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-11 04:10:53 UTC (rev 434196)
@@ -0,0 +1,42 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+pkgname=sdl2
+pkgver=2.0.20
+pkgrel=1
+pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
+arch=('x86_64')
+url="https://www.libsdl.org"
+license=('MIT')
+depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'libibus' 'hidapi' 'libusb')
+makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon'
+ 'wayland-protocols' 'ibus' 'fcitx' 'libxss' 'cmake' 'jack' 'ninja' 'pipewire'
+ 'libdecor')
+optdepends=('alsa-lib: ALSA audio driver'
+ 'libpulse: PulseAudio audio driver'
+ 'jack: JACK audio driver'
+ 'pipewire: PipeWire audio driver'
+ 'libdecor: Wayland client decorations')
+source=("https://www.libsdl.org/release/SDL2-${pkgver}.tar.gz"{,.sig})
+sha512sums=('4889949eaa674948bdb0a01bb2a842a0943b15b08ff27ec0079b0fd4f79d071ffb32488a5a51c12ad7c74ed5fe73b608cdf6336a44c95dae8a0fb3f47d0f01de'
+ 'SKIP')
+validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga
+
+build() {
+ CFLAGS+=" -ffat-lto-objects"
+ cmake -S SDL2-${pkgver} -B build -G Ninja \
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D SDL_STATIC=OFF \
+ -D SDL_DLOPEN=ON \
+ -D SDL_RPATH=OFF
+ cmake --build build
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --install build
+
+ # For some reason, this isn't named correctly and we have to fix it to reflect the actual staticlib name.
+ sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake
+
+ install -Dm644 SDL2-${pkgver}/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list