[arch-commits] Commit in lua-posix/repos (community-x86_64 community-x86_64/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Sat Jan 1 09:38:10 UTC 2022


    Date: Saturday, January 1, 2022 @ 09:38:10
  Author: alerque
Revision: 1091634

archrelease: copy trunk to community-x86_64

Added:
  lua-posix/repos/community-x86_64/
  lua-posix/repos/community-x86_64/PKGBUILD
    (from rev 1091633, lua-posix/trunk/PKGBUILD)

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

Copied: lua-posix/repos/community-x86_64/PKGBUILD (from rev 1091633, lua-posix/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-01-01 09:38:10 UTC (rev 1091634)
@@ -0,0 +1,50 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Christian Krause ("wookietreiber") <christian.krause at mailbox.org>
+
+pkgbase=lua-posix
+_rockname=${pkgbase#lua-}
+_project="${pkgbase//-}"
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=35.1
+_rockrel=1
+pkgrel=3
+pkgdesc='POSIX bindings for Lua'
+arch=(x86_64 i686)
+url="https://github.com/$_project/$_project"
+license=(MIT)
+depends=(libxcrypt
+         libcrypt.so)
+_luadeps=(std-normalize)
+makedepends=(lua
+             lua51
+             lua52
+             lua53
+             luarocks)
+# checkdepends=(specl)
+_archive="$_project-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('1b5c48d2abd59de0738d1fc1e6204e44979ad2a1a26e8e22a2d6215dd502c797')
+
+_package() {
+	cd "$_archive"
+	depends+=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+	luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+		make --deps-mode=none --no-manifest "$_archive-$_rockrel.rockspec"
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
+
+package_lua-posix() {
+	_package 5.4
+}
+
+package_lua51-posix() {
+	_package 5.1
+}
+
+package_lua52-posix() {
+	_package 5.2
+}
+
+package_lua53-posix() {
+	_package 5.3
+}



More information about the arch-commits mailing list