[arch-commits] Commit in lib32-sdl2/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Mon Aug 12 09:18:25 UTC 2019
Date: Monday, August 12, 2019 @ 09:18:24
Author: alucryd
Revision: 499006
upgpkg: lib32-sdl2 2.0.10-1
Modified:
lib32-sdl2/trunk/PKGBUILD
----------+
PKGBUILD | 72 ++++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 45 insertions(+), 27 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-12 09:05:50 UTC (rev 499005)
+++ PKGBUILD 2019-08-12 09:18:24 UTC (rev 499006)
@@ -3,44 +3,64 @@
# Contributor: J0k3r <moebius282 at gmail.com>
pkgname=lib32-sdl2
-pkgver=2.0.9
+pkgver=2.0.10
pkgrel=1
-pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2. 32 -bit)"
-arch=('x86_64')
-url="https://www.libsdl.org"
-license=('MIT')
-depends=('lib32-glibc' 'lib32-libxext' 'lib32-libxrender' 'lib32-libx11' 'lib32-libgl'
- 'lib32-libxcursor' 'sdl2')
-makedepends=('gcc-multilib' 'lib32-alsa-lib' 'lib32-mesa' 'lib32-libpulse' 'lib32-libxrandr'
- 'lib32-libxinerama' 'lib32-wayland' 'lib32-libxkbcommon' 'wayland-protocols'
- 'lib32-libxss' 'cmake' 'jack')
-optdepends=('lib32-alsa-lib: ALSA audio driver'
- 'lib32-libpulse: PulseAudio audio driver'
- 'lib32-jack: JACK audio driver')
-source=("https://www.libsdl.org/release/SDL2-${pkgver}.tar.gz"{,.sig})
-sha512sums=('a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10'
- 'SKIP')
-validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') # Sam Lantinga
+pkgdesc='A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2. 32 -bit)'
+arch=(x86_64)
+url=https://www.libsdl.org
+license=(MIT)
+depends=(
+ lib32-glibc
+ lib32-libxext
+ lib32-libxrender
+ lib32-libx11
+ lib32-libgl
+ lib32-libxcursor
+ sdl2
+)
+makedepends=(
+ cmake
+ jack
+ lib32-alsa-lib
+ lib32-mesa
+ lib32-libpulse
+ lib32-libxrandr
+ lib32-libxinerama
+ lib32-wayland
+ lib32-libxkbcommon
+ lib32-libxss
+ mercurial
+ wayland-protocols
+)
+optdepends=(
+ 'lib32-alsa-lib: ALSA audio driver'
+ 'lib32-libpulse: PulseAudio audio driver'
+ 'lib32-jack: JACK audio driver'
+)
+source=(hg+https://hg.libsdl.org/SDL#tag=release-${pkgver})
+sha512sums=(SKIP)
prepare() {
- cd SDL2-${pkgver}
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
- sed -i 's|lib/cmake|lib32/cmake|' CMakeLists.txt
-
+ # fix libdir
+ sed -i 's|lib/cmake|lib32/cmake|' SDL/CMakeLists.txt
# Don't try to link against ibus
- sed -i '/pkg_search_module.*ibus-1.0/d' CMakeLists.txt
+ sed -i '/pkg_search_module.*ibus-1.0/d' SDL/CMakeLists.txt
- mkdir build
}
build() {
- cd SDL2-${pkgver}/build
+ cd build
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
- cmake .. \
+ cmake ../SDL \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=32 \
-DSDL_STATIC=OFF \
@@ -58,9 +78,7 @@
}
package() {
- cd SDL2-${pkgver}/build
-
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" -C build install
rm -rf "${pkgdir}"/usr/{bin,include,share}
sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib32/cmake/SDL2/SDL2Targets-noconfig.cmake
More information about the arch-commits
mailing list