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

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Jul 16 04:15:00 UTC 2020


    Date: Thursday, July 16, 2020 @ 04:15:00
  Author: svenstaro
Revision: 664029

upgpkg: lua-mpack 1.0.8-2

Modified:
  lua-mpack/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-16 02:30:41 UTC (rev 664028)
+++ PKGBUILD	2020-07-16 04:15:00 UTC (rev 664029)
@@ -5,11 +5,11 @@
 pkgname=(lua51-mpack lua52-mpack lua-mpack)
 pkgver=1.0.8
 pkgdesc="libmpack lua binding"
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='https://github.com/libmpack/libmpack-lua'
 depends=('libmpack')
-makedepends=('lua51' 'lua52' 'lua')
+makedepends=('lua51' 'lua52' 'lua53' 'lua')
 license=('MIT')
 source=("libmpack-lua-${pkgver}.tar.gz::https://github.com/libmpack/libmpack-lua/archive/${pkgver}.tar.gz")
 sha256sums=('6d84d272bff27800ba1d7b718d1005ac6bfe35c5f3a5bf5d07e6ffd7e341d560')
@@ -23,8 +23,11 @@
   gcc -O2 -fPIC -DMPACK_USE_SYSTEM -I/usr/include/lua5.2 -c lmpack.c -o lmpack.o
   gcc -shared -lmpack -o mpack.so.5.2 lmpack.o
 
+  gcc -O2 -fPIC -DMPACK_USE_SYSTEM -I/usr/include/lua5.3 -c lmpack.c -o lmpack.o
+  gcc -shared -lmpack -o mpack.so.5.3 lmpack.o
+
   gcc -O2 -fPIC -DMPACK_USE_SYSTEM -I/usr/include -c lmpack.c -o lmpack.o
-  gcc -shared -lmpack -o mpack.so.5.3 lmpack.o
+  gcc -shared -lmpack -o mpack.so.5.4 lmpack.o
 }
 
 package_lua51-mpack() {
@@ -45,9 +48,9 @@
   install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
-package_lua-mpack() {
+package_lua53-mpack() {
   pkgdesc='Simple implementation of msgpack in C Lua 5.3'
-  depends+=('lua')
+  depends+=('lua53')
 
   cd "libmpack-lua-${pkgver}"
   install -Dm755 mpack.so.5.3 "${pkgdir}/usr/lib/lua/5.3/mpack.so"
@@ -54,4 +57,13 @@
   install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
+package_lua-mpack() {
+  pkgdesc='Simple implementation of msgpack in C Lua 5.4'
+  depends+=('lua')
+
+  cd "libmpack-lua-${pkgver}"
+  install -Dm755 mpack.so.5.4 "${pkgdir}/usr/lib/lua/5.4/mpack.so"
+  install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
 # vim:set sw=2 sts=2 et:



More information about the arch-commits mailing list