Date: Wednesday, March 18, 2020 @ 09:58:29 Author: alucryd Revision: 600500
upgpkg: lib32-sdl2 2.0.12-1 Modified: lib32-sdl2/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-18 09:51:52 UTC (rev 600499) +++ PKGBUILD 2020-03-18 09:58:29 UTC (rev 600500) @@ -3,9 +3,9 @@ # Contributor: J0k3r <[email protected]> pkgname=lib32-sdl2 -pkgver=2.0.10 +pkgver=2.0.12 pkgrel=1 -pkgdesc='A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2. 32 -bit)' +pkgdesc='A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard' arch=(x86_64) url=https://www.libsdl.org license=(MIT) @@ -37,30 +37,28 @@ 'lib32-libpulse: PulseAudio audio driver' 'lib32-jack: JACK audio driver' ) -source=(hg+https://hg.libsdl.org/SDL#tag=release-${pkgver}) +source=(hg+https://hg.libsdl.org/SDL#tag=355a4f94a782) sha512sums=(SKIP) +pkgver() { + cd SDL + + hg id --tags | sed 's/^release-//' +} + prepare() { - if [[ -d build ]]; then - rm -rf build - fi - mkdir build - # 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' SDL/CMakeLists.txt - } build() { - cd build - export CC='gcc -m32' export CXX='g++ -m32' - export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + export PKG_CONFIG_PATH=/usr/lib32/pkgconfig - cmake ../SDL \ + cmake -S SDL -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=32 \ -DSDL_STATIC=OFF \ @@ -74,7 +72,7 @@ -DRPATH=OFF \ -DCLOCK_GETTIME=ON \ -DJACK_SHARED=ON - make + make -C build } package() {
