[arch-commits] Commit in luajson/repos (extra-any extra-any/PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Jan 7 21:21:00 UTC 2018


    Date: Sunday, January 7, 2018 @ 21:20:59
  Author: bpiotrowski
Revision: 314255

archrelease: copy trunk to extra-any

Added:
  luajson/repos/extra-any/
  luajson/repos/extra-any/PKGBUILD
    (from rev 314254, luajson/trunk/PKGBUILD)

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

Copied: luajson/repos/extra-any/PKGBUILD (from rev 314254, luajson/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2018-01-07 21:20:59 UTC (rev 314255)
@@ -0,0 +1,45 @@
+# Maintainer: Luca P <meti at lplab.net>
+
+pkgbase=luajson
+pkgname=(lua-luajson lua51-luajson lua52-luajson)
+pkgver=1.3.4
+pkgrel=1
+arch=('any')
+url='http://luaforge.net/projects/luajson/'
+license=('MIT')
+makedepends=('lua-lpeg' 'lua51-lpeg' 'lua52-lpeg')
+source=(https://github.com/harningt/$pkgbase/archive/$pkgver.tar.gz)
+md5sums=('66ef8d00bcaeec91b25433a697090bc8')
+
+package_lua-luajson() {
+  pkgdesc='JSON parser/encoder for Lua'
+  depends=('lua-lpeg')
+
+  cd $pkgbase-$pkgver
+  make PREFIX=/usr DESTDIR="$pkgdir" \
+    INSTALL_LMOD='$(INSTALL_TOP)/share/lua/5.3' \
+    INSTALL_CMOD='$(INSTALL_TOP)/lib/lua/5.3' install
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua51-luajson() {
+  pkgdesc='JSON parser/encoder for Lua 5.1'
+  depends=('lua51-lpeg')
+
+  cd $pkgbase-$pkgver
+  make PREFIX=/usr DESTDIR="$pkgdir" \
+    INSTALL_LMOD='$(INSTALL_TOP)/share/lua/5.1' \
+    INSTALL_CMOD='$(INSTALL_TOP)/lib/lua/5.1' install
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua52-luajson() {
+  pkgdesc='JSON parser/encoder for Lua 5.2'
+  depends=('lua52-lpeg')
+
+  cd $pkgbase-$pkgver
+  make PREFIX=/usr DESTDIR="$pkgdir" \
+    INSTALL_LMOD='$(INSTALL_TOP)/share/lua/5.2' \
+    INSTALL_CMOD='$(INSTALL_TOP)/lib/lua/5.2' install
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list