diff options
author | Caleb Maclennan | 2020-08-06 12:29:51 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-08-06 12:29:51 +0300 |
commit | 53dbd1e8b4068904742001d9840605f21f273c9f (patch) | |
tree | a2ee850ef19f9e7bf98d7a0365ecb0c3e1b74197 /PKGBUILD | |
parent | 36bc46e21d218dc16ae1232d48b57efa2eda7869 (diff) | |
download | aur-lua-luaepnf.tar.gz |
upgpkg: lua-luaepnf 0.3-6
Bump default to Lua 5.4 and add Lua 5.3 split package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2,17 +2,17 @@ _luaname=epnf _rockname=lua$_luaname -pkgname=("lua-$_rockname" "lua52-$_rockname" "lua51-$_rockname") +pkgname=("lua-$_rockname" "lua53-$_rockname" "lua52-$_rockname" "lua51-$_rockname") _pkgname=lua-$_rockname pkgver=0.3 _rockrel=2 -pkgrel=5 +pkgrel=6 pkgdesc='Extended PEG Notation Format (easy grammars for LPeg)' arch=('i686' 'x86_64') url="https://siffiejoe.github.com/$_pkgname" license=('MIT') _lua_deps=('lpeg') -makedepends=('lua' 'lua52' 'lua51' 'luarocks') +makedepends=('lua' 'lua53' 'lua52' 'lua51' 'luarocks') source=("$_rockname-$pkgver.tar.gz::https://github.com/siffiejoe/$_pkgname/archive/v$pkgver.tar.gz") sha256sums=('57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9') @@ -23,12 +23,19 @@ prepare() { _package_helper() { cd "$_pkgname-$pkgver" - luarocks --lua-version="$1" --tree="$pkgdir/usr/" make --deps-mode=none --no-manifest "$_rockname-scm-0.rockspec" + luarocks --lua-version="$1" --tree="$pkgdir/usr/" \ + make --deps-mode=none --no-manifest "$_rockname-scm-0.rockspec" } package_lua-luaepnf() { depends=('lua' "${_lua_deps[@]/#/lua-}") provides=("lua-$_luaname") + _package_helper 5.4 +} + +package_lua53-luaepnf() { + depends=('lua53' "${_lua_deps[@]/#/lua53-}") + provides=("lua-$_luaname") _package_helper 5.3 } |