diff options
author | trougnouf (Benoit Brummer) | 2019-04-20 14:40:24 +0200 |
---|---|---|
committer | trougnouf (Benoit Brummer) | 2019-04-20 14:40:24 +0200 |
commit | 514fe62150c952751ec329b626bf2ddbc9d55cb9 (patch) | |
tree | 1cb14011c38f142553605dfbd1f1730a6b61caad | |
download | aur-514fe62150c952751ec329b626bf2ddbc9d55cb9.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..264bfc649cee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = luajson + pkgdesc = JSON parser/encoder for Lua + pkgver = 1.3.4 + pkgrel = 1 + url = http://luaforge.net/projects/luajson/ + arch = any + license = MIT + depends = lua-lpeg + source = https://github.com/harningt/luajson/archive/1.3.4.tar.gz + sha1sums = 2ea25e4147ad661ff3b6d0427439bf99c06eb46d + +pkgname = lua-luajson + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b968bd47be39 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com> +# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Luca P <meti at lplab.net> + +pkgbase=luajson +pkgname=lua-${pkgbase} +pkgver=1.3.4 +pkgrel=1 +pkgdesc="JSON parser/encoder for Lua" +url="http://luaforge.net/projects/luajson/" +arch=(any) +license=(MIT) +depends=(lua-lpeg) +source=(https://github.com/harningt/$pkgbase/archive/$pkgver.tar.gz) +sha1sums=('2ea25e4147ad661ff3b6d0427439bf99c06eb46d') + +package() { + LUAVERSION=$(lua -v | grep -P -o '([0-9]\.[0-9])') + cd ${srcdir}/${pkgbase}-${pkgver} + make PREFIX=/usr DESTDIR="$pkgdir" \ + INSTALL_LMOD='$(INSTALL_TOP)/share/lua/${LUAVERSION}' \ + INSTALL_CMOD='$(INSTALL_TOP)/lib/lua/${LUAVERSION}' install + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE +} |