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

Caleb Maclennan alerque at gemini.archlinux.org
Thu Dec 30 21:58:05 UTC 2021


    Date: Thursday, December 30, 2021 @ 21:58:05
  Author: alerque
Revision: 1088959

archrelease: copy trunk to community-any

Added:
  lua-lub/repos/community-any/
  lua-lub/repos/community-any/PKGBUILD
    (from rev 1088958, lua-lub/trunk/PKGBUILD)

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

Copied: lua-lub/repos/community-any/PKGBUILD (from rev 1088958, lua-lub/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-12-30 21:58:05 UTC (rev 1088959)
@@ -0,0 +1,45 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgbase=lua-lub
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=1.1.0
+_rockrel=1
+pkgrel=5
+pkgdesc='Lubyk base module'
+arch=(any)
+url="https://lubyk.github.io/lubyk/$_rockname.html"
+license=(MIT)
+_luadeps=(filesystem)
+makedepends=(lua
+             lua51
+             lua52
+             lua53
+             luarocks)
+_archive="$_rockname-REL-$pkgver"
+source=("https://github.com/lubyk/$_rockname/archive/REL-$pkgver/$_archive.tar.gz")
+sha256sums=('355f427f28155c4cf3a9673aa24c3754ea782c1c5f2081cbc4c28c00ed69a0b7')
+
+_package() {
+	cd "$_archive"
+	depends=("${pkgname%-*}" "${_luadeps[@]/#/${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
+}
+
+package_lua-lub() {
+	_package 5.4
+}
+
+package_lua53-lub() {
+	_package 5.3
+}
+
+package_lua52-lub() {
+	_package 5.2
+}
+
+package_lua51-lub() {
+	_package 5.1
+}



More information about the arch-commits mailing list