summaryrefslogtreecommitdiff
path: root/extra/sdl2
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-09 01:49:58 -0700
committerroot <root@rshg054.dnsready.net>2013-08-09 01:49:58 -0700
commit7978ce3c736ef00274d5956c378df572315702bd (patch)
treed7ad3d3505e9a534455353724fe110d23813e67e /extra/sdl2
parentd65d13a9fb3099310bb7736be11ee0724dde2dc7 (diff)
Fri Aug 9 01:49:55 PDT 2013
Diffstat (limited to 'extra/sdl2')
-rw-r--r--extra/sdl2/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/sdl2/PKGBUILD b/extra/sdl2/PKGBUILD
new file mode 100644
index 000000000..057fe41d1
--- /dev/null
+++ b/extra/sdl2/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=sdl2
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
+arch=('i686' 'x86_64')
+url="http://www.libsdl.org"
+license=('MIT')
+depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl')
+makedepends=('alsa-lib' 'mesa' 'libpulse' 'cmake')
+optdepends=('alsa-lib: ALSA audio driver'
+ 'libpulse: PulseAudio audio driver')
+source=("http://www.libsdl.org/tmp/release/SDL2-${pkgver}.tar.gz")
+md5sums=('ffb0f2115b3aaee9f3150301fdd680cd')
+
+build() {
+ cd "${srcdir}/SDL2-${pkgver}"
+
+ mkdir build && cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSDL_STATIC=OFF \
+ -DRPATH=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/SDL2-${pkgver}/build"
+
+ make DESTDIR="${pkgdir}/" install
+
+ install -Dm644 ../COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}