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

Daurnimator daurnimator at archlinux.org
Sun Jul 5 14:34:52 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:34:52
  Author: daurnimator
Revision: 657839

upgpkg: luasec 2:0.9-2: lua package is becoming Lua 5.4

Modified:
  luasec/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:33:37 UTC (rev 657838)
+++ PKGBUILD	2020-07-05 14:34:52 UTC (rev 657839)
@@ -4,10 +4,10 @@
 # Contributor: Paul-Sebastian Manole <brokenthorn at gmail.com>
 
 pkgbase=luasec
-pkgname=(lua-sec lua51-sec lua52-sec)
+pkgname=(lua-sec lua51-sec lua52-sec lua53-sec)
 epoch=2
 pkgver=0.9
-pkgrel=1
+pkgrel=2
 pkgdesc='Lua bindings for OpenSSL library to provide TLS/SSL communication.'
 arch=('x86_64')
 url='https://github.com/brunoos/luasec/wiki'
@@ -18,7 +18,9 @@
              'lua51'
              'lua51-socket'
              'lua52'
-             'lua52-socket')
+             'lua52-socket'
+             'lua53'
+             'lua53-socket')
 depends=('openssl')
 source=("$pkgbase-v$pkgver.tar.gz"::"https://github.com/brunoos/luasec/archive/v$pkgver.tar.gz")
 sha512sums=('ea601016328232ca0ff12be72897eeedac88a78834a63e1c36d2828a3187039665a2c60597b5af1fa6917b6fe87cd292fbcdfabcd67bab968f587e038d52a933')
@@ -26,6 +28,7 @@
 prepare() {
   cp -a luasec-$pkgver luasec-$pkgver-51
   cp -a luasec-$pkgver luasec-$pkgver-52
+  cp -a luasec-$pkgver luasec-$pkgver-53
 }
 
 build() {
@@ -35,6 +38,9 @@
   cd "$srcdir"/luasec-$pkgver-52
   make linux INC_PATH=-I/usr/include/lua5.2
 
+  cd "$srcdir"/luasec-$pkgver-53
+  make linux INC_PATH=-I/usr/include/lua5.3
+
   cd "$srcdir"/luasec-$pkgver
   make linux
 }
@@ -57,11 +63,19 @@
   install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
+package_lua53-sec() {
+  depends+=('lua53-socket')
+
+  cd "luasec-$pkgver-53"
+  make LUACPATH="$pkgdir/usr/lib/lua/5.3" LUAPATH="$pkgdir/usr/share/lua/5.3" install
+  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
 package_lua-sec() {
   depends+=('lua-socket')
 
   cd "luasec-$pkgver"
-  make LUACPATH="$pkgdir/usr/lib/lua/5.3" LUAPATH="$pkgdir/usr/share/lua/5.3" install
+  make LUACPATH="$pkgdir/usr/lib/lua/5.4" LUAPATH="$pkgdir/usr/share/lua/5.4" install
   install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 



More information about the arch-commits mailing list