[arch-commits] Commit in lua-system/repos (community-x86_64 community-x86_64/PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Sat Dec 25 11:54:12 UTC 2021
Date: Saturday, December 25, 2021 @ 11:54:12
Author: alerque
Revision: 1083583
archrelease: copy trunk to community-x86_64
Added:
lua-system/repos/community-x86_64/
lua-system/repos/community-x86_64/PKGBUILD
(from rev 1083582, lua-system/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: lua-system/repos/community-x86_64/PKGBUILD (from rev 1083582, lua-system/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-12-25 11:54:12 UTC (rev 1083583)
@@ -0,0 +1,44 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgbase=lua-system
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=0.2.1
+_rockrel=0
+pkgrel=4
+pkgdesc='Platform independent system calls for Lua'
+arch=(x86_64 i686)
+url="https://github.com/o-lim/${pkgbase/-/}"
+license=(MIT)
+makedepends=(lua
+ lua51
+ lua52
+ lua53
+ luarocks)
+_archive="${pkgbase/-/}-$pkgver"
+source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('0b83f68e9edbba92bef11ec0ccf1e5bb779a7337653f7bb77e0240c8e85c0b94')
+
+_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-system() {
+ _package 5.4
+}
+
+package_lua51-system() {
+ _package 5.1
+}
+
+package_lua52-system() {
+ _package 5.2
+}
+
+package_lua53-system() {
+ _package 5.3
+}
More information about the arch-commits
mailing list