[arch-commits] Commit in lua-sdl2/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 23:22:11 UTC 2018


    Date: Friday, November 9, 2018 @ 23:22:11
  Author: foutrelis
Revision: 405263

archrelease: copy trunk to community-staging-x86_64

Added:
  lua-sdl2/repos/community-staging-x86_64/
  lua-sdl2/repos/community-staging-x86_64/PKGBUILD
    (from rev 405262, lua-sdl2/trunk/PKGBUILD)

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

Copied: lua-sdl2/repos/community-staging-x86_64/PKGBUILD (from rev 405262, lua-sdl2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 23:22:11 UTC (rev 405263)
@@ -0,0 +1,32 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+
+pkgname=lua-sdl2
+pkgver=v2.0.5_6.0
+pkgrel=2
+_lua=5.3
+pkgdesc='Pure C binding of SDL 2.0 for Lua'
+arch=('x86_64')
+url='https://github.com/Tangent128/luasdl2'
+license=('MIT')
+depends=('lua' 'sdl2_gfx' 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'sdl2_ttf')
+makedepends=('lua' 'git' 'sdl2_gfx' 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'sdl2_ttf' 'cmake' 'ninja')
+source=('git+https://github.com/Tangent128/luasdl2#commit=98602738ba87b2c7f1ce299134d0f10b49092350')
+md5sums=('SKIP')
+
+build() {
+  mkdir -p build
+  cd build
+  cmake ../luasdl2 \
+    -DWITH_LUAVER=${_lua/./} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -G Ninja
+  ninja
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  install -Dm644 luasdl2/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  mv "$pkgdir/usr/share/docs/Lua-SDL2" "$pkgdir/usr/share/docs/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list