summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD22
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da0c2785833
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = lua-yajl
+ pkgdesc = Integrate the yajl JSON library with Lua.
+ pkgver = 2.0
+ pkgrel = 1
+ url = https://luarocks.org/modules/brimworks/lua-yajl
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = luarocks5.1
+ depends = lua51
+ source = https://luarocks.org/manifests/brimworks/lua-yajl-2.0-1.src.rock
+ sha256sums = 8e5c5bde4ae4aac336c5ce6da2aef94bf4f69f37e921d718647914bd5328552f
+
+pkgname = lua-yajl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e2df11ddb74
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Xabre <Xabre@archlinux.info>
+
+pkgname=lua-yajl
+pkgver=2.0
+_rockname=lua-yajl
+_rockrel=1
+pkgrel=1
+pkgdesc="Integrate the yajl JSON library with Lua."
+arch=('i686' 'x86_64')
+url="https://luarocks.org/modules/brimworks/lua-yajl"
+license=('GPL')
+depends=('lua51')
+makedepends=('luarocks5.1')
+conflicts=()
+source=("https://luarocks.org/manifests/brimworks/${_rockname}-${pkgver}-${_rockrel}.src.rock")
+sha256sums=('8e5c5bde4ae4aac336c5ce6da2aef94bf4f69f37e921d718647914bd5328552f')
+
+package() {
+ luarocks-5.1 --tree="$pkgdir/usr" install --deps-mode=none "${_rockname}-${pkgver}-${_rockrel}.src.rock"
+ find "$pkgdir/usr" -name manifest -delete
+}
+