[arch-commits] Commit in (4 files)

Caleb Maclennan alerque at gemini.archlinux.org
Sat Jan 1 09:18:14 UTC 2022


    Date: Saturday, January 1, 2022 @ 09:18:14
  Author: alerque
Revision: 1091626

Migrate lua-std-_debug from AUR

Added:
  lua-std-_debug/
  lua-std-_debug/repos/
  lua-std-_debug/trunk/
  lua-std-_debug/trunk/PKGBUILD

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

Added: lua-std-_debug/trunk/PKGBUILD
===================================================================
--- lua-std-_debug/trunk/PKGBUILD	                        (rev 0)
+++ lua-std-_debug/trunk/PKGBUILD	2022-01-01 09:18:14 UTC (rev 1091626)
@@ -0,0 +1,47 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Kilian Guillaume "cafehaine" <kilian dot guillaume at gmail dot com>
+
+pkgbase=lua-std-_debug
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=1.0.1
+_rockrel=1
+pkgrel=6
+pkgdesc='Lua-stdlib project’s debug hints library'
+arch=(any)
+url="https://github.com/lua-stdlib/${_rockname#std-}"
+license=(MIT)
+makedepends=(lua
+             lua51
+             lua52
+             lua53
+             luarocks)
+# checkdepends=(specl)
+_archive="${_rockname#std-}-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('efc560540f08dcf880ac48c6ab527bd741bbe3d6d66202a3c8be3ff5c9e1e907')
+
+
+_package() {
+	cd "$_archive"
+	depends=(${pkgname%%-*})
+	luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+		make --deps-mode=none --no-manifest "${_rockname/-/.}-$pkgver-$_rockrel.rockspec"
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
+}
+
+package_lua-std-_debug() {
+	_package 5.4
+}
+
+package_lua51-std-_debug() {
+	_package 5.1
+}
+
+package_lua52-std-_debug() {
+	_package 5.2
+}
+
+package_lua53-std-_debug() {
+	_package 5.3
+}



More information about the arch-commits mailing list