diff options
author | Stephen Smith | 2019-01-27 21:12:35 -0500 |
---|---|---|
committer | Stephen Smith | 2019-01-27 21:12:35 -0500 |
commit | 5afd7486b672f99e360560d3194762eb748be37a (patch) | |
tree | 5c4847a0fca15b5ab670502aa126c2b563917bcc | |
download | aur-5afd7486b672f99e360560d3194762eb748be37a.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a191c504ed33 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Mon Jan 28 02:12:30 UTC 2019 +pkgbase = lua51-dkjson + pkgdesc = David Kolf's JSON module for Lua + pkgver = 2.5 + pkgrel = 1 + url = http://dkolf.de/src/dkjson-lua.fsl/ + arch = i686 + arch = x86_64 + license = MIT + source = dkjson-2.5.tar.gz::http://dkolf.de/src/dkjson-lua.fsl/tarball/dkjson-2.5.tar.gz?uuid=release_2_5 + md5sums = 6f0b6f16314472366e383188386a172b + +pkgname = lua51-dkjson + depends = lua51 + depends = luarocks5.1 + +pkgname = lua52-dkjson + depends = lua52 + depends = luarocks5.2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..84ac6c016f8c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Stephen Smith <stephen304@gmail.com> + +pkgname=('lua51-dkjson' 'lua52-dkjson') +pkgbase=lua51-dkjson +_rockname=dkjson +pkgver=2.5 +pkgrel=1 +pkgdesc="David Kolf's JSON module for Lua" +arch=('i686' 'x86_64') +url="http://dkolf.de/src/dkjson-lua.fsl/" +license=('MIT') +source=("${_rockname}-${pkgver}.tar.gz::http://dkolf.de/src/dkjson-lua.fsl/tarball/dkjson-2.5.tar.gz?uuid=release_2_5") +md5sums=('6f0b6f16314472366e383188386a172b') + +_package_helper() { + _lua_ver=$1 + + mkdir -p "$_lua_ver" + cd "$_rockname-$pkgver" + luarocks-${_lua_ver} make --pack-binary-rock --deps-mode=none "$_rockname-$pkgver-1.rockspec" + mv *.rock ../${_lua_ver}/ + luarocks-${_lua_ver} install --tree="$pkgdir/usr/" --deps-mode=none ../${_lua_ver}/*.rock + find "$pkgdir/usr" -name manifest -delete +} + +package_lua51-dkjson() { + depends=('lua51' 'luarocks5.1') + + _package_helper "5.1" +} + +package_lua52-dkjson() { + depends=('lua52' 'luarocks5.2') + + _package_helper "5.2" +} |