[arch-commits] Commit in (4 files)

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


    Date: Saturday, January 1, 2022 @ 09:36:50
  Author: alerque
Revision: 1091633

Migrate lua-posix from AUR

Added:
  lua-posix/
  lua-posix/repos/
  lua-posix/trunk/
  lua-posix/trunk/PKGBUILD

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

Added: lua-posix/trunk/PKGBUILD
===================================================================
--- lua-posix/trunk/PKGBUILD	                        (rev 0)
+++ lua-posix/trunk/PKGBUILD	2022-01-01 09:36:50 UTC (rev 1091633)
@@ -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