[arch-commits] Commit in lib32-sdl2/repos (multilib-x86_64 multilib-x86_64/PKGBUILD)

Maxime Gauduin alucryd at nymeria.archlinux.org
Mon Jan 6 13:34:14 UTC 2014


    Date: Monday, January 6, 2014 @ 14:34:14
  Author: alucryd
Revision: 103469

archrelease: copy trunk to multilib-x86_64

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

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

Copied: lib32-sdl2/repos/multilib-x86_64/PKGBUILD (from rev 103468, lib32-sdl2/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-x86_64/PKGBUILD	2014-01-06 13:34:14 UTC (rev 103469)
@@ -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.1
+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-libxrandr')
+optdepends=('lib32-alsa-lib: ALSA audio driver'
+            'lib32-libpulse: PulseAudio audio driver')
+source=("${url}/release/SDL2-${pkgver}.tar.gz")
+sha256sums=('0ae7e902a26777614a011fe7053ca7e8b14843db3c42ca117564d208cf6732f0')
+
+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} --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