[arch-commits] Commit in lua-inifile/repos (community-any community-any/PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Dec 30 22:52:14 UTC 2021
Date: Thursday, December 30, 2021 @ 22:52:14
Author: alerque
Revision: 1089007
Migrate lua-inifile from AUR
Added:
lua-inifile/repos/community-any/
lua-inifile/repos/community-any/PKGBUILD
(from rev 1088998, lua-inifile/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: lua-inifile/repos/community-any/PKGBUILD (from rev 1088998, lua-inifile/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-12-30 22:52:14 UTC (rev 1089007)
@@ -0,0 +1,44 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Stephen Smith <stephen304 at gmail.com>
+
+pkgbase=lua-inifile
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=1.0
+pkgrel=2
+_rockrel=2
+pkgdesc='a simple, complete ini parser for lua'
+arch=(any)
+url="https://github.com/bartbes/$_rockname"
+license=(BSD)
+makedepends=(lua
+ lua51
+ lua52
+ lua53
+ luarocks)
+_archive="$_rockname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('5b9365c66145c3b4aeb0d997aff974e0acff60067a804adcf0ba05ead0e450fb')
+
+_package() {
+ cd "$_archive"
+ depends=("${pkgname%-*}")
+ luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+ make --deps-mode=none --no-manifest "$_rockname-$pkgver-$_rockrel.rockspec"
+}
+
+package_lua-inifile() {
+ _package 5.4
+}
+
+package_lua53-inifile() {
+ _package 5.3
+}
+
+package_lua52-inifile() {
+ _package 5.2
+}
+
+package_lua51-inifile() {
+ _package 5.1
+}
More information about the arch-commits
mailing list