Date: Thursday, February 22, 2018 @ 18:21:14
  Author: svenstaro
Revision: 297099

upgpkg: lua-mpack 1.0.7-2

Modified:
  lua-mpack/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++--------------------------
 1 file changed, 25 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-22 18:20:14 UTC (rev 297098)
+++ PKGBUILD    2018-02-22 18:21:14 UTC (rev 297099)
@@ -2,10 +2,10 @@
 # Contributor: Florian Walch <florian+...@fwalch.com>
 
 pkgbase=lua-mpack
-pkgname=('lua51-mpack')
+pkgname=(lua51-mpack lua52-mpack lua-mpack)
 pkgver=1.0.7
 pkgdesc="libmpack lua binding"
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='https://github.com/libmpack/libmpack-lua'
 depends=('libmpack')
@@ -20,17 +20,16 @@
   gcc -O2 -fPIC -DMPACK_USE_SYSTEM -I/usr/include/lua5.1 -c lmpack.c -o 
lmpack.o
   gcc -shared -lmpack -o mpack.so.5.1 lmpack.o
 
-  # Broken currently
-  # gcc -O2 -fPIC -I/usr/include/lua5.2 -c lmpack.c -o lmpack.o
-  # gcc -shared -o mpack.so.5.2 lmpack.o
-  #
-  # gcc -O2 -fPIC -I/usr/include -c lmpack.c -o lmpack.o
-  # gcc -shared -o mpack.so.5.3 lmpack.o
+  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 -c lmpack.c -o lmpack.o
+  gcc -shared -lmpack -o mpack.so.5.3 lmpack.o
 }
 
 package_lua51-mpack() {
   pkgdesc='Simple implementation of msgpack in C Lua 5.1'
-  depends=('lua51')
+  depends+=('lua51')
 
   cd "libmpack-lua-${pkgver}"
   install -Dm755 mpack.so.5.1 "${pkgdir}/usr/lib/lua/5.1/mpack.so"
@@ -37,22 +36,22 @@
   install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
-# package_lua52-mpack() {
-#   pkgdesc='Simple implementation of msgpack in C Lua 5.2'
-#   depends=('lua52')
-#
-#   cd "${srcdir}/libmpack-${pkgver}"
-#   install -Dm755 mpack.so.5.3 "${pkgdir}/usr/lib/lua/5.2/mpack.so"
-#   install -Dm644 LICENSE-MIT 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-# }
-#
-# package_lua-mpack() {
-#   pkgdesc='Simple implementation of msgpack in C Lua 5.3'
-#   depends=('lua')
-#
-#   cd "${srcdir}/libmpack-${pkgver}"
-#   install -Dm755 mpack.so.5.3 "${pkgdir}/usr/lib/lua/5.3/mpack.so"
-#   install -Dm644 LICENSE-MIT 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-# }
+package_lua52-mpack() {
+  pkgdesc='Simple implementation of msgpack in C Lua 5.2'
+  depends+=('lua52')
 
+  cd "libmpack-lua-${pkgver}"
+  install -Dm755 mpack.so.5.2 "${pkgdir}/usr/lib/lua/5.2/mpack.so"
+  install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_lua-mpack() {
+  pkgdesc='Simple implementation of msgpack in C Lua 5.3'
+  depends+=('lua')
+
+  cd "libmpack-lua-${pkgver}"
+  install -Dm755 mpack.so.5.3 "${pkgdir}/usr/lib/lua/5.3/mpack.so"
+  install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
 # vim:set sw=2 sts=2 et:

Reply via email to