[arch-commits] Commit in lib32-sdl2/repos (2 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Wed Mar 12 16:32:17 UTC 2014


    Date: Wednesday, March 12, 2014 @ 17:32:17
  Author: alucryd
Revision: 107109

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-sdl2/repos/multilib-testing-x86_64/
  lib32-sdl2/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 107108, lib32-sdl2/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: lib32-sdl2/repos/multilib-testing-x86_64/PKGBUILD (from rev 107108, lib32-sdl2/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2014-03-12 16:32:17 UTC (rev 107109)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Jameson Pugh <imntreal at gmail.com>
+# Contributor: J0k3r <moebius282 at gmail.com>
+
+pkgname=lib32-sdl2
+pkgver=2.0.2
+pkgrel=2
+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=('lib32-libgl' 'lib32-libx11' 'lib32-libxext' 'lib32-libxrender' "${pkgname#*-}")
+makedepends=('lib32-alsa-lib' 'lib32-mesa' 'lib32-libpulse' 'lib32-libxinerama' 'lib32-libxkbcommon' 'lib32-libxrandr' 'lib32-wayland')
+optdepends=('lib32-alsa-lib: ALSA audio driver'
+            'lib32-libpulse: PulseAudio audio driver')
+source=("${url}/release/SDL2-${pkgver}.tar.gz")
+sha256sums=('590157f85a8a8b52723848169a74eec6ca07ab4a75cec15beedde648f980e850')
+
+prepare() {
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
+build() {
+  cd build
+
+  export CC='gcc -m32'
+  export CXX='g++ -m32'
+  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+  ../SDL2-${pkgver}/configure --prefix='/usr' --libdir='/usr/lib32' --enable-{alsa,pulseaudio-shared,sdl-dlopen,video-wayland} --disable-{arts,esd,nas,rpath}
+  make
+}
+
+package() {
+  cd build
+
+  make DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}"/usr/{bin,include,share}
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses
+  ln -s ${pkgname#*-} "${pkgdir}"/usr/share/licenses/${pkgname}
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list