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

Daurnimator daurnimator at archlinux.org
Thu Jul 9 13:43:24 UTC 2020


    Date: Thursday, July 9, 2020 @ 13:43:24
  Author: daurnimator
Revision: 661822

upgpkg: lua-filesystem 1.8.0-2: Tidy up and rebuild for Lua 5.4

Modified:
  lua-filesystem/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-09 13:38:10 UTC (rev 661821)
+++ PKGBUILD	2020-07-09 13:43:24 UTC (rev 661822)
@@ -1,5 +1,5 @@
-# Maintainer: Sergej Pupykin <arch+pub at p5n.pp.ru>
 # Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Sergej Pupykin <arch+pub at p5n.pp.ru>
 # Contributor: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
 # Contributor: Chris Brannon <cmbrannon79 at gmail.com>
 # Contributor: Paulo Matias <matiasΘarchlinux-br·org>
@@ -9,12 +9,12 @@
 pkgname=(lua-filesystem lua51-filesystem lua52-filesystem)
 pkgver=1.8.0
 _tag=${pkgver//./_}
-pkgrel=1
+pkgrel=2
 pkgdesc='File System Library for the Lua Programming Language'
 arch=('x86_64')
 url='http://keplerproject.github.io/luafilesystem/'
 license=('MIT')
-makedepends=('lua' 'lua51' 'lua52')
+makedepends=('lua' 'lua51' 'lua52' 'lua53')
 source=("$pkgbase-${_tag}.tar.gz::https://github.com/keplerproject/luafilesystem/archive/v${_tag}.tar.gz")
 sha256sums=('16d17c788b8093f2047325343f5e9b74cccb1ea96001e45914a58bbae8932495')
 
@@ -25,12 +25,15 @@
   cp -a luafilesystem-${_tag} luafilesystem-${_tag}-52
   make -C luafilesystem-${_tag}-52 PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.2
 
-  make -C luafilesystem-${_tag} PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.3
+  cp -a luafilesystem-${_tag} luafilesystem-${_tag}-53
+  make -C luafilesystem-${_tag}-53 PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.3
+
+  make -C luafilesystem-${_tag} PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.4
 }
 
 package_lua-filesystem() {
   cd luafilesystem-${_tag}
-  make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.3 install
+  make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.4 install
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
@@ -45,3 +48,9 @@
   make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.2 install
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
+
+package_lua53-filesystem() {
+  cd luafilesystem-${_tag}-53
+  make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.3 install
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list