summaryrefslogtreecommitdiff
path: root/extra/sdl2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sdl2/PKGBUILD')
-rw-r--r--extra/sdl2/PKGBUILD35
1 files changed, 17 insertions, 18 deletions
diff --git a/extra/sdl2/PKGBUILD b/extra/sdl2/PKGBUILD
index c554f2083..76aa6c8c0 100644
--- a/extra/sdl2/PKGBUILD
+++ b/extra/sdl2/PKGBUILD
@@ -1,35 +1,34 @@
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
-
pkgname=sdl2
-pkgver=2.0.0
-pkgrel=4
+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=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl')
-makedepends=('alsa-lib' 'mesa' 'libpulse' 'cmake' 'libxrandr' 'libxinerama')
+makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama')
optdepends=('alsa-lib: ALSA audio driver'
'libpulse: PulseAudio audio driver')
source=("http://www.libsdl.org/release/SDL2-${pkgver}.tar.gz")
-md5sums=('beec89afb6edcc6f0abc4114f2e6bcf7')
-
-build() {
- cd "${srcdir}/SDL2-${pkgver}"
+md5sums=('0eb97039488bf463e775295f7b18b227')
- mkdir build && cd build
+prepare() {
+ mkdir build
+}
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DSDL_STATIC=OFF \
- -DRPATH=OFF
+build() {
+ cd build
+ ../SDL2-$pkgver/configure --prefix=/usr \
+ --enable-sdl-dlopen \
+ --disable-arts --disable-esd --disable-nas \
+ --enable-alsa --enable-pulseaudio-shared \
+ --disable-rpath
make
}
package() {
- cd "${srcdir}/SDL2-${pkgver}/build"
-
- make DESTDIR="${pkgdir}/" install
-
- install -Dm644 ../COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd build
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../SDL2-$pkgver/COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}