[arch-commits] Commit in lua-dkjson/repos (3 files)

Daurnimator daurnimator at archlinux.org
Sun Feb 7 09:34:07 UTC 2021


    Date: Sunday, February 7, 2021 @ 09:34:07
  Author: daurnimator
Revision: 848008

archrelease: copy trunk to community-any

Added:
  lua-dkjson/repos/community-any/
  lua-dkjson/repos/community-any/LICENSE
    (from rev 848007, lua-dkjson/trunk/LICENSE)
  lua-dkjson/repos/community-any/PKGBUILD
    (from rev 848007, lua-dkjson/trunk/PKGBUILD)

----------+
 LICENSE  |    7 ++++++
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Copied: lua-dkjson/repos/community-any/LICENSE (from rev 848007, lua-dkjson/trunk/LICENSE)
===================================================================
--- community-any/LICENSE	                        (rev 0)
+++ community-any/LICENSE	2021-02-07 09:34:07 UTC (rev 848008)
@@ -0,0 +1,7 @@
+Copyright (C) 2010-2014 David Heiko Kolf
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copied: lua-dkjson/repos/community-any/PKGBUILD (from rev 848007, lua-dkjson/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-02-07 09:34:07 UTC (rev 848008)
@@ -0,0 +1,67 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=("lua-dkjson" "lua53-dkjson" "lua52-dkjson" "lua51-dkjson")
+pkgver=2.5
+pkgrel=5
+pkgdesc='David Kolf’s Pure Lua JSON module with UTF-8 support and no external dependencies'
+arch=('any')
+url="http://dkolf.de/src/dkjson-lua.fsl/home"
+license=('MIT')
+makedepends=('luarocks'
+             'lua51' 'lua52' 'lua53' 'lua' # https://github.com/luarocks/luarocks/issues/1275
+            )
+source=("http://dkolf.de/src/dkjson-lua.fsl/tarball/dkjson-$pkgver.tar.gz"
+        "LICENSE")
+sha256sums=('b469e80daa9f2355c675d9293e831f3f69153e49856c59634db97899121a720d'
+            '695b49734d1244ff236ec8785aa908883deb0f65b2356e36e8739ea06002b03c')
+
+build() {
+  cd "dkjson-$pkgver"
+  for v in 5.1 5.2 5.3 5.4; do
+    mkdir -p "$v/"
+    luarocks make --lua-version="$v" \
+      --pack-binary-rock --deps-mode=none \
+      dkjson-"$pkgver"-2.rockspec
+    mv dkjson-"$pkgver"-2.*.rock "$v/"
+  done
+}
+
+package_lua-dkjson() {
+  pkgdesc="$pkgdesc for Lua 5.4"
+  optdepends=('lua-lpeg: speeds up decoding')
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "dkjson-$pkgver"
+  luarocks install --lua-version=5.4 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.4/*.rock
+}
+
+package_lua53-dkjson() {
+  pkgdesc="$pkgdesc for Lua 5.3"
+  optdepends=('lua53-lpeg: speeds up decoding')
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "dkjson-$pkgver"
+  luarocks install --lua-version=5.3 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.3/*.rock
+}
+
+package_lua52-dkjson() {
+  pkgdesc="$pkgdesc for Lua 5.2"
+  optdepends=('lua52-lpeg: speeds up decoding')
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "dkjson-$pkgver"
+  luarocks install --lua-version=5.2 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.2/*.rock
+}
+
+package_lua51-dkjson() {
+  pkgdesc="$pkgdesc for Lua 5.1"
+  optdepends=('lua51-lpeg: speeds up decoding')
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "dkjson-$pkgver"
+  luarocks install --lua-version=5.1 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.1/*.rock
+}



More information about the arch-commits mailing list