summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2021-09-15 18:40:52 +0300
committerCaleb Maclennan2021-09-15 18:40:52 +0300
commit6b3c3ad6e22d782dc30d43dc861778aa01ed962b (patch)
tree798b15b781c78d5065674307d6e49ed82cc079c0
parentba865bc846a2c737981f2b4f6b7c4c4f61da760c (diff)
downloadaur-6b3c3ad6e22d782dc30d43dc861778aa01ed962b.tar.gz
upgpkg: lua-posix 35.1-1
upstream release
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD38
2 files changed, 24 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 05616889ee9..3c60b72aad1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = lua-posix
pkgdesc = POSIX bindings for Lua
- pkgver = 35.0
- pkgrel = 2
+ pkgver = 35.1
+ pkgrel = 1
url = https://github.com/luaposix/luaposix
arch = x86_64
arch = i686
@@ -11,21 +11,13 @@ pkgbase = lua-posix
makedepends = lua52
makedepends = lua53
makedepends = luarocks
- source = luaposix-35.0.tar.gz::https://github.com/luaposix/luaposix/archive/v35.0.tar.gz
- sha256sums = a4edf2f715feff65acb009e8d1689e57ec665eb79bc36a6649fae55eafd56809
+ source = luaposix-35.1.tar.gz::https://github.com/luaposix/luaposix/archive/v35.1.tar.gz
+ sha256sums = 1b5c48d2abd59de0738d1fc1e6204e44979ad2a1a26e8e22a2d6215dd502c797
pkgname = lua-posix
- depends = lua
- depends = lua-std-normalize
-pkgname = lua53-posix
- depends = lua53
- depends = lua53-std-normalize
+pkgname = lua51-posix
pkgname = lua52-posix
- depends = lua52
- depends = lua52-std-normalize
-pkgname = lua51-posix
- depends = lua51
- depends = lua51-std-normalize
+pkgname = lua53-posix
diff --git a/PKGBUILD b/PKGBUILD
index 0d428b5d8d8..b63f189547e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
-_rockname=posix
-pkgbase=lua-$_rockname
+pkgbase=lua-posix
+_rockname=${pkgbase#lua-}
_pkgbase="${pkgbase//-}"
-pkgname=("lua-$_rockname" "lua53-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
-pkgver=35.0
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=35.1
_rockrel=1
-pkgrel=2
+pkgrel=1
pkgdesc='POSIX bindings for Lua'
arch=(x86_64 i686)
url="https://github.com/$_pkgbase/$_pkgbase"
@@ -18,32 +18,30 @@ makedepends=(lua
lua52
lua53
luarocks)
-source=("$_pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('a4edf2f715feff65acb009e8d1689e57ec665eb79bc36a6649fae55eafd56809')
+_archive="$_pkgbase-$pkgver"
+source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('1b5c48d2abd59de0738d1fc1e6204e44979ad2a1a26e8e22a2d6215dd502c797')
-_package_helper() {
- cd "$_pkgbase-$pkgver"
+_package() {
+ cd "$_archive"
+ depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
- make --deps-mode=none --no-manifest "$_pkgbase-$pkgver-$_rockrel.rockspec"
+ make --deps-mode=none --no-manifest "$_archive-$_rockrel.rockspec"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
package_lua-posix() {
- depends+=(lua "${_lua_deps[@]/#/lua-}")
- _package_helper 5.4
+ _package 5.4
}
-package_lua53-posix() {
- depends+=(lua53 "${_lua_deps[@]/#/lua53-}")
- _package_helper 5.3
+package_lua51-posix() {
+ _package 5.1
}
package_lua52-posix() {
- depends+=(lua52 "${_lua_deps[@]/#/lua52-}")
- _package_helper 5.2
+ _package 5.2
}
-package_lua51-posix() {
- depends+=(lua51 "${_lua_deps[@]/#/lua51-}")
- _package_helper 5.1
+package_lua53-posix() {
+ _package 5.3
}