[arch-commits] Commit in lua-alt-getopt/trunk (PKGBUILD)

Daurnimator daurnimator at archlinux.org
Sun Jul 5 09:28:28 UTC 2020


    Date: Sunday, July 5, 2020 @ 09:28:27
  Author: daurnimator
Revision: 657773

upgpkg: lua-alt-getopt 0.7.0-9: lua package is becoming Lua 5.4

Modified:
  lua-alt-getopt/trunk/PKGBUILD

----------+
 PKGBUILD |   41 ++++++++++++-----------------------------
 1 file changed, 12 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 09:26:54 UTC (rev 657772)
+++ PKGBUILD	2020-07-05 09:28:27 UTC (rev 657773)
@@ -1,54 +1,37 @@
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
 # Old Maintainer: Gustavo Alvarez <sl1pkn07 at gmail.com>
 # contributor: Cameron Banta <cbanta at gmail.com>
 
 pkgbase=lua-alt-getopt
-pkgname=(lua-alt-getopt lua51-alt-getopt lua52-alt-getopt)
+pkgname=(lua51-alt-getopt lua52-alt-getopt lua53-alt-getopt)
 pkgver=0.7.0
-pkgrel=8
+pkgrel=9
 pkgdesc="Lua module for processing options similar to getopt_long(3)"
 license=('MIT')
 arch=('any')
 url="http://luaforge.net/projects/alt-getopt/"
-makedepends=('bmake' 'lua' 'lua51' 'lua52')
 source=("http://mova.org/~cheusov/pub/lua_alt_getopt/lua-alt-getopt-${pkgver}.tar.gz"
         'LICENSE')
 sha512sums=('379db696180e2bbb6e472ebe56e921c9736ee89ad673b296d0e580f100617a10dd5b44fdd665298ac87a44bbf8b5c330696653ec6d62ccaebc22120debf3c91f'
             'f4c04e8a6bdbc737e04672f7751fcfb709e34c87df69ddfada0b0e22480f5ffd7daf21f266699e5b2955ff781f5a4aa574a614646896d12c994bc7b9282b0f67')
 
-build() {
-  cp -r "${pkgname}-${pkgver}" build51
-  cp -r "${pkgname}-${pkgver}" build52
-  cp -r "${pkgname}-${pkgver}" build53
-
-  cd "$srcdir"/build51
-  bmake LUAVER=5.1 PREFIX=/usr
-  cd "$srcdir"/build52
-  bmake LUAVER=5.2 PREFIX=/usr
-  cd "$srcdir"/build53
-  bmake LUAVER=5.3 PREFIX=/usr
-}
-
 package_lua51-alt-getopt() {
-  depends=('lua51')
-  cd "$srcdir"/build51
-  install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt5.1"
-  install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.1/alt_getopt.lua"
+  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"
 }
 
 package_lua52-alt-getopt() {
-  depends=('lua52')
-  cd "$srcdir"/build52
-  install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt5.2"
-  install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.2/alt_getopt.lua"
+  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"
 }
 
-package_lua-alt-getopt() {
-  depends=('lua')
-  cd "$srcdir"/build53
-  install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt"
-  install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.3/alt_getopt.lua"
+package_lua53-alt-getopt() {
+  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"
 }
+
+# Library does not support lua5.4



More information about the arch-commits mailing list