Date: Monday, August 17, 2020 @ 13:26:26 Author: daurnimator Revision: 682626
upgpkg: lua-alt-getopt 0.8.0-1 Modified: lua-alt-getopt/trunk/PKGBUILD ----------+ PKGBUILD | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-17 12:59:19 UTC (rev 682625) +++ PKGBUILD 2020-08-17 13:26:26 UTC (rev 682626) @@ -3,35 +3,44 @@ # Old Maintainer: Gustavo Alvarez <[email protected]> # contributor: Cameron Banta <[email protected]> -pkgbase=lua-alt-getopt -pkgname=(lua51-alt-getopt lua52-alt-getopt lua53-alt-getopt) -pkgver=0.7.0 -pkgrel=9 +pkgname=(lua-alt-getopt lua51-alt-getopt lua52-alt-getopt lua53-alt-getopt) +pkgver=0.8.0 +pkgrel=1 pkgdesc="Lua module for processing options similar to getopt_long(3)" license=('MIT') arch=('any') -url="http://luaforge.net/projects/alt-getopt/" -source=("http://mova.org/~cheusov/pub/lua_alt_getopt/lua-alt-getopt-${pkgver}.tar.gz" - 'LICENSE') -sha512sums=('379db696180e2bbb6e472ebe56e921c9736ee89ad673b296d0e580f100617a10dd5b44fdd665298ac87a44bbf8b5c330696653ec6d62ccaebc22120debf3c91f' - 'f4c04e8a6bdbc737e04672f7751fcfb709e34c87df69ddfada0b0e22480f5ffd7daf21f266699e5b2955ff781f5a4aa574a614646896d12c994bc7b9282b0f67') +url="https://github.com/cheusov/lua-alt-getopt" +source=("https://github.com/cheusov/lua-alt-getopt/archive/${pkgver}.tar.gz") +sha512sums=('1c0768e98793ee060a8a70bc47355abf5feac3b51d9844a26816267c0901df9f30c9ef3280766dec2c5b754123ca548c8f49cb294bf4f04c378c62ea377e09de') package_lua51-alt-getopt() { + pkgdesc="$pkgdesc for Lua 5.1" + cd "${pkgbase}-${pkgver}" install -Dm644 alt_getopt.lua "${pkgdir}/usr/share/lua/5.1/alt_getopt.lua" - install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } package_lua52-alt-getopt() { + pkgdesc="$pkgdesc for Lua 5.2" + cd "${pkgbase}-${pkgver}" install -Dm644 alt_getopt.lua "${pkgdir}/usr/share/lua/5.2/alt_getopt.lua" - install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } package_lua53-alt-getopt() { + pkgdesc="$pkgdesc for Lua 5.3" + cd "${pkgbase}-${pkgver}" install -Dm644 alt_getopt.lua "${pkgdir}/usr/share/lua/5.3/alt_getopt.lua" - install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } -# Library does not support lua5.4 +package_lua-alt-getopt() { + pkgdesc="$pkgdesc for Lua 5.4" + + cd "${pkgbase}-${pkgver}" + install -Dm644 alt_getopt.lua "${pkgdir}/usr/share/lua/5.4/alt_getopt.lua" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}
