diff options
author | Mika Attila | 2015-06-19 13:19:18 +0200 |
---|---|---|
committer | Mika Attila | 2015-06-19 13:22:58 +0200 |
commit | f46b8b17964e32795070821af09652c39866f306 (patch) | |
tree | b4a6597ef2b49470c6c30dc046a16a059c4e6658 | |
download | aur-f46b8b17964e32795070821af09652c39866f306.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dc7a392b669a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-sdl2 + pkgdesc = A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2) (mingw-w64) + pkgver = 2.0.3 + pkgrel = 7 + url = http://libsdl.org + arch = any + license = MIT + makedepends = mingw-w64-configure + depends = mingw-w64-libdbus + options = staticlibs + options = !strip + options = !buildflags + source = http://libsdl.org/release/SDL2-2.0.3.tar.gz + md5sums = fe6c61d2e9df9ef570e7e80c6e822537 + +pkgname = mingw-w64-sdl2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0803347a3c03 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: SneakySnake <radiantstatue@gmail.com> +# Submit issues/pull requests at https://github.com/crumblingstatue/pkgbuilds + +pkgname=mingw-w64-sdl2 +pkgver=2.0.3 +pkgrel=7 +pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2) (mingw-w64)" +arch=(any) +url="http://libsdl.org" +license=("MIT") +depends=(mingw-w64-libdbus) +makedepends=(mingw-w64-configure) +options=(staticlibs !strip !buildflags) +source=("http://libsdl.org/release/SDL2-${pkgver}.tar.gz") +md5sums=('fe6c61d2e9df9ef570e7e80c6e822537') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/SDL2-${pkgver}" + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --enable-render-d3d=no + make + popd + done +} + +package() { + install -d "$pkgdir"/usr/bin + for _arch in ${_architectures}; do + cd "${srcdir}/SDL2-${pkgver}/build-${_arch}" + make DESTDIR="$pkgdir" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + rm -r "$pkgdir"/usr/${_arch}/share + ln -s /usr/${_arch}/bin/sdl2-config "$pkgdir"/usr/bin/${_arch}-sdl2-config + done +} |