diff options
author | Vincent Grande | 2021-02-14 01:38:21 -0500 |
---|---|---|
committer | Vincent Grande | 2021-02-14 01:38:21 -0500 |
commit | 618607a18280348754003f36f9ec97359c7ec63c (patch) | |
tree | c21661b013233d2f1afce48d1e6e59a1efc430f9 | |
download | aur-618607a18280348754003f36f9ec97359c7ec63c.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 42 | ||||
-rwxr-xr-x | PKGBUILD | 102 |
2 files changed, 144 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3df287b44b68 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,42 @@ +pkgbase = sdl2-minimal-git + pkgdesc = A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2) + pkgver = 2.0.9.r22.80f861112154 + pkgrel = 1 + url = https://www.libsdl.org + arch = x86_64 + license = MIT + makedepends = alsa-lib + makedepends = libxrandr + makedepends = libxinerama + makedepends = libxkbcommon + makedepends = cmake + makedepends = libxxf86vm + makedepends = mercurial + makedepends = ninja + depends = glibc + depends = libxext + depends = libxrender + depends = libx11 + depends = libgl + depends = libxcursor + depends = libxxf86vm + optdepends = alsa-lib: ALSA audio driver + optdepends = libpulse: PulseAudio audio driver + optdepends = jack: JACK audio driver + optdepends = fcitx: Asian language support + optdepends = ibus: Asian language support + optdepends = libibus: Asian language support + optdepends = tslib: Touchscreen support + optdepends = wayland: wayland support + optdepends = wayland-protocols: wayland support + optdepends = mesa: open source graphics support + optdepends = hidapi: modern controller support + optdepends = libxss: screensaver support + provides = sdl2 + conflicts = sdl2 + conflicts = sdl2-hg + source = git+https://github.com/libsdl-org/SDL + sha512sums = SKIP + +pkgname = sdl2-minimal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..59e12e46d3a7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,102 @@ +# Maintainer: Vincent Grande <shoober420@gmail.com> +# Contributor: Christer Solskogen <christer.solskogen@gmail.com> +# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> + +pkgname=sdl2-minimal-git +pkgver=2.0.9.r22.80f861112154 +pkgrel=1 +pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)" +arch=('x86_64') +url="https://www.libsdl.org" +license=('MIT') +depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'libxxf86vm') +makedepends=('alsa-lib' 'libxrandr' 'libxinerama' 'libxkbcommon' 'cmake' 'libxxf86vm' 'mercurial' 'ninja') +optdepends=('alsa-lib: ALSA audio driver' + 'libpulse: PulseAudio audio driver' + 'jack: JACK audio driver' + 'fcitx: Asian language support' + 'ibus: Asian language support' + 'libibus: Asian language support' + 'tslib: Touchscreen support' + 'wayland: wayland support' + 'wayland-protocols: wayland support' + 'mesa: open source graphics support' + 'hidapi: modern controller support' + 'libxss: screensaver support') +source=("git+https://github.com/libsdl-org/SDL") +provides=(sdl2) +conflicts=(sdl2 sdl2-hg) +sha512sums=('SKIP') + +pkgver() { + cd "SDL" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd SDL + + sed -i "s/LIBUSB libusb/LIBUSB libusb-1.0/g" cmake/sdlchecks.cmake + + rm -rf build + mkdir build +} + +build() { + cd SDL/build + cmake .. \ + -Bbuild \ + -GNinja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSDL_STATIC=OFF \ + -DSDL_DLOPEN=ON \ + -DARTS=OFF \ + -DARTS_SHARED=OFF \ + -DESD=OFF \ + -DESD_SHARED=OFF \ + -DNAS=OFF \ + -DNAS_SHARED=OFF \ + -DALSA=ON \ + -DOSS=OFF \ + -DHIDAPI=OFF \ + -DHIDAPI_LIBUSB=OFF \ + -DJOYSTICK=OFF \ + -DJOYSTICK_VIRTUAL=OFF \ + -DJOYSTICK_MFI=OFF \ + -DHAPTIC=OFF \ + -DSENSOR=OFF \ + -DSNDIO=OFF \ + -DSNDIO_SHARED=OFF \ + -DPULSEAUDIO=OFF \ + -DPULSEAUDIO_SHARED=OFF \ + -DVIDEO_WAYLAND=ON \ + -DVIDEO_WAYLAND_QT_TOUCH=OFF \ + -DVIDEO_X11_XSCRNSAVER=OFF \ + -DRPATH=OFF \ + -DCLOCK_GETTIME=ON \ + -DVIDEO_RPI=OFF \ + -DIBUS=OFF \ + -DFCITX=OFF \ + -DSSE=ON \ + -DSSE2=ON \ + -DSSE3=ON \ + -DSSEMATH=ON \ + -DVIDEO_X11_XSHAPE=OFF \ + -DJACK=OFF \ + -DJACK_SHARED=OFF + ninja $NINJAFLAGS -C build +} + +package() { + cd SDL/build + + DESTDIR="${pkgdir}" ninja $NINJAFLAGS -C build install + + sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake + + install -Dm644 ../COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + ln -s /usr/lib/libSDL2-2.0.so ${pkgdir}/usr/lib/libSDL2-2.0.so.0 +} + +# vim: ts=2 sw=2 et: |