[arch-commits] Commit in lua-sdl2/repos (2 files)
Alexander Rødseth
arodseth at archlinux.org
Mon Jul 6 23:25:51 UTC 2020
Date: Monday, July 6, 2020 @ 23:25:51
Author: arodseth
Revision: 658095
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 658094, lua-sdl2/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: lua-sdl2/repos/community-staging-x86_64/PKGBUILD (from rev 658094, lua-sdl2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-06 23:25:51 UTC (rev 658095)
@@ -0,0 +1,32 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+
+pkgname=lua-sdl2
+pkgver=2.0.5.6.0
+pkgrel=3
+_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=(lua53 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf)
+makedepends=(cmake git ninja)
+source=("git+$url#commit=01a749db3acf300dfd3eee3a6ba38dbe298d1081") # tag: v2.0.5-6.0
+md5sums=('SKIP')
+
+build() {
+ mkdir -p build
+ cd build
+ cmake ../${pkgname/-} \
+ -DWITH_LUAVER=${_lua/./} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWITH_DOCSDIR="share/doc/$pkgname" \
+ -G Ninja
+ ninja
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+ install -Dm644 luasdl2/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list