[arch-commits] Commit in lua-mpack/repos (2 files)

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


    Date: Thursday, July 16, 2020 @ 04:15:06
  Author: svenstaro
Revision: 664030

archrelease: copy trunk to community-staging-x86_64

Added:
  lua-mpack/repos/community-staging-x86_64/
  lua-mpack/repos/community-staging-x86_64/PKGBUILD
    (from rev 664029, lua-mpack/trunk/PKGBUILD)

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Copied: lua-mpack/repos/community-staging-x86_64/PKGBUILD (from rev 664029, lua-mpack/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-16 04:15:06 UTC (rev 664030)
@@ -0,0 +1,69 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Florian Walch <florian+aur at fwalch.com>
+
+pkgbase=lua-mpack
+pkgname=(lua51-mpack lua52-mpack lua-mpack)
+pkgver=1.0.8
+pkgdesc="libmpack lua binding"
+pkgrel=2
+arch=('x86_64')
+url='https://github.com/libmpack/libmpack-lua'
+depends=('libmpack')
+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')
+
+build() {
+  cd "libmpack-lua-${pkgver}"
+
+  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
+
+  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.4 lmpack.o
+}
+
+package_lua51-mpack() {
+  pkgdesc='Simple implementation of msgpack in C Lua 5.1'
+  depends+=('lua51')
+
+  cd "libmpack-lua-${pkgver}"
+  install -Dm755 mpack.so.5.1 "${pkgdir}/usr/lib/lua/5.1/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_lua53-mpack() {
+  pkgdesc='Simple implementation of msgpack in C Lua 5.3'
+  depends+=('lua53')
+
+  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"
+}
+
+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