summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2020-08-06 17:35:25 +0300
committerCaleb Maclennan2020-08-06 17:35:25 +0300
commit8bd592a372bd544ad235d6ada130eb6006222136 (patch)
treeb8630d1ae9ce642ee9ebf281c63d5c138c502dcb /PKGBUILD
parent8755b48b48b92717db5372aa644e3a33e7fbf07f (diff)
downloadaur-lua-posix-git.tar.gz
upgpkg: lua-posix-git 33.4.0.r172.g1ff80ab-1
Bump default to Lua 5.4 and add Lua 5.3 split package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3276c0a6e2c..c4abbdfe58d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,22 +10,22 @@
_rockname=posix
pkgbase=lua-$_rockname-git
_pkgbase=luaposix
-pkgname=("lua-$_rockname-git" "lua52-$_rockname-git" "lua51-$_rockname-git")
-pkgver=33.4.0.r158.g69c6195
+pkgname=("lua-$_rockname-git" "lua53-$_rockname-git" "lua52-$_rockname-git" "lua51-$_rockname-git")
+pkgver=33.4.0.r172.g1ff80ab
_rockrel=1
-pkgrel=2
+pkgrel=1
pkgdesc="POSIX bindings for Lua"
arch=('x86_64' 'i686')
url="https://github.com/$_pkgbase/$_pkgbase"
license=('MIT')
-makedepends=('git' 'ldoc' 'luarocks' 'lua52' 'lua51')
+makedepends=('git' 'ldoc' 'lua' 'lua53' 'lua52' 'lua51' 'luarocks')
_lua_deps=('std-normalize')
-source=("git://github.com/luaposix/luaposix.git")
+source=("git://github.com/$_pkgbase/$_pkgbase.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgbase"
- git describe --tags --abbrev=7 HEAD |
+ git describe --long --always --tags --abbrev=7 HEAD |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
@@ -33,13 +33,20 @@ _package_helper() {
cd "$_pkgbase"
luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
make --deps-mode=none --no-manifest "$_pkgbase-git-$_rockrel.rockspec"
- install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
package_lua-posix-git() {
depends=('lua' "${_lua_deps[@]/#/lua-}")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
+ _package_helper 5.4
+}
+
+package_lua53-posix-git() {
+ depends=('lua53' "${_lua_deps[@]/#/lua53-}")
+ provides=("${pkgname%-git}")
+ conflicts=("${pkgname%-git}")
_package_helper 5.3
}