[arch-commits] Commit in lua-std-_debug/repos (community-any community-any/PKGBUILD)

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


    Date: Saturday, January 1, 2022 @ 09:18:51
  Author: alerque
Revision: 1091627

archrelease: copy trunk to community-any

Added:
  lua-std-_debug/repos/community-any/
  lua-std-_debug/repos/community-any/PKGBUILD
    (from rev 1091626, lua-std-_debug/trunk/PKGBUILD)

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

Copied: lua-std-_debug/repos/community-any/PKGBUILD (from rev 1091626, lua-std-_debug/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-01-01 09:18:51 UTC (rev 1091627)
@@ -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