Date: Wednesday, April 4, 2018 @ 04:25:04 Author: svenstaro Revision: 320911
archrelease: copy trunk to extra-x86_64 Added: sdl2/repos/extra-x86_64/PKGBUILD (from rev 320910, sdl2/trunk/PKGBUILD) Deleted: sdl2/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 96 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-04-04 04:24:46 UTC (rev 320910) +++ PKGBUILD 2018-04-04 04:25:04 UTC (rev 320911) @@ -1,48 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -pkgname=sdl2 -pkgver=2.0.8 -pkgrel=6 -pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)" -arch=('x86_64') -url="http://www.libsdl.org" -license=('MIT') -depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor') -makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon' - 'wayland-protocols' 'ibus' 'fcitx' 'libxss' 'cmake') -optdepends=('alsa-lib: ALSA audio driver' - 'libpulse: PulseAudio audio driver') -source=("https://www.libsdl.org/release/SDL2-${pkgver}.tar.gz"{,.sig}) -sha512sums=('673c6058b8692a36b4a3594456b10ef6051efe79e4fb644421fc5c76b11fd68b895840a2c8b72413418c378733e2993d33f19767d0d7ed101eda6310bd70c869' - 'SKIP') -validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') - -prepare() { - cd SDL2-${pkgver} - rm -rf build - mkdir build -} - -build() { - cd SDL2-${pkgver}/build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DSDL_DLOPEN=ON \ - -DARTS=OFF \ - -DESD=OFF \ - -DNAS=OFF \ - -DALSA=ON \ - -DPULSEAUDIO_SHARED=ON \ - -DVIDEO_WAYLAND=ON \ - -DRPATH=OFF \ - -DCLOCK_GETTIME=ON - make -} - -package() { - cd SDL2-${pkgver}/build - - make DESTDIR="$pkgdir" install - - sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake - install -Dm644 ../COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: sdl2/repos/extra-x86_64/PKGBUILD (from rev 320910, sdl2/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-04-04 04:25:04 UTC (rev 320911) @@ -0,0 +1,48 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +pkgname=sdl2 +pkgver=2.0.8 +pkgrel=7 +pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)" +arch=('x86_64') +url="http://www.libsdl.org" +license=('MIT') +depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'libibus') +makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon' + 'wayland-protocols' 'ibus' 'fcitx' 'libxss' 'cmake') +optdepends=('alsa-lib: ALSA audio driver' + 'libpulse: PulseAudio audio driver') +source=("https://www.libsdl.org/release/SDL2-${pkgver}.tar.gz"{,.sig}) +sha512sums=('673c6058b8692a36b4a3594456b10ef6051efe79e4fb644421fc5c76b11fd68b895840a2c8b72413418c378733e2993d33f19767d0d7ed101eda6310bd70c869' + 'SKIP') +validpgpkeys=('1528635D8053A57F77D1E08630A59377A7763BE6') + +prepare() { + cd SDL2-${pkgver} + rm -rf build + mkdir build +} + +build() { + cd SDL2-${pkgver}/build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSDL_DLOPEN=ON \ + -DARTS=OFF \ + -DESD=OFF \ + -DNAS=OFF \ + -DALSA=ON \ + -DPULSEAUDIO_SHARED=ON \ + -DVIDEO_WAYLAND=ON \ + -DRPATH=OFF \ + -DCLOCK_GETTIME=ON + make +} + +package() { + cd SDL2-${pkgver}/build + + make DESTDIR="$pkgdir" install + + sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake + install -Dm644 ../COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}