summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2020-08-05 12:15:02 +0300
committerCaleb Maclennan2020-08-05 12:15:02 +0300
commita81f4481e6e2fa6082b841ca9e334ce922605d2c (patch)
tree8f1f90fdb3164a061747105860163537887ad877 /PKGBUILD
parent546a70f520315bf2e6bc89c4b996061dabe7074e (diff)
downloadaur-a81f4481e6e2fa6082b841ca9e334ce922605d2c.tar.gz
upgpkg: lua-penlight-git 1.8.0.r0.g76079c1-1
upstream release Usher in Lua 5.4 compatable build
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 19 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9d555fd177d..a6420290948 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,23 @@
# Contributor: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'>
_pkgname=penlight
-pkgname=("lua-$_pkgname-git" "lua52-$_pkgname-git" "lua51-$_pkgname-git")
-pkgver=1.7.0.r4.ge469fa0
-pkgrel=3
+pkgname=("lua-$_pkgname-git" "lua53-$_pkgname-git" "lua52-$_pkgname-git" "lua51-$_pkgname-git")
+pkgver=1.8.0.r0.g76079c1
+pkgrel=1
pkgdesc='Lua libraries for on input data handling, functional programming, and OS interface'
url='https://tieske.github.io/Penlight'
arch=('any')
license=('MIT')
_lua_deps=('filesystem')
-checkdepends=('lua' 'lua-luacov' "${_lua_deps[@]/#/lua-}") # Luacov because of upstream bug since fixed, remove when bumping release
+makedepends=('lua' 'lua53' 'lua52' 'lua51')
+checkdepends=('lua' "${_lua_deps[@]/#/lua-}")
source=("$_pkgname::git+https://github.com/Tieske/Penlight.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
- git describe --tags --abbrev=7 HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --long --tags --abbrev=7 HEAD |
+ sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
check() {
@@ -27,17 +29,24 @@ check() {
_package_helper() {
cd "$_pkgname"
- install -Dm 644 lua/pl/* -t "$pkgdir/usr/share/lua/$1/pl"
- install -Dm 644 CONTRIBUTING.md CHANGELOG.md README.md -t "$pkgdir/usr/share/doc/$pkgname"
- install -Dm 644 docs/manual/* -t "$pkgdir/usr/share/doc/$pkgname/manual"
- install -Dm 644 examples/* -t "$pkgdir/usr/share/doc/$pkgname/examples"
- install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 -t "$pkgdir/usr/share/lua/$1/pl" lua/pl/*
+ install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" CONTRIBUTING.md CHANGELOG.md README.md
+ install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/manual/" docs/manual/*
+ install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/examples/" examples/*
+ install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
}
package_lua-penlight-git() {
depends+=('lua' "${_lua_deps[@]/#/lua-}")
provides=("${pkgname/%-git}")
conflicts=("${pkgname/%-git}")
+ _package_helper 5.4
+}
+
+package_lua53-penlight-git() {
+ depends+=('lua53' "${_lua_deps[@]/#/lua53-}")
+ provides=("${pkgname/%-git}")
+ conflicts=("${pkgname/%-git}")
_package_helper 5.3
}