[arch-commits] Commit in libluv/repos (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Sep 16 23:13:33 UTC 2019


    Date: Monday, September 16, 2019 @ 23:13:33
  Author: svenstaro
Revision: 510943

archrelease: copy trunk to community-x86_64

Added:
  libluv/repos/community-x86_64/
  libluv/repos/community-x86_64/PKGBUILD
    (from rev 510942, libluv/trunk/PKGBUILD)
  libluv/repos/community-x86_64/libluv.pc.in
    (from rev 510942, libluv/trunk/libluv.pc.in)

--------------+
 PKGBUILD     |   42 ++++++++++++++++++++++++++++++++++++++++++
 libluv.pc.in |   12 ++++++++++++
 2 files changed, 54 insertions(+)

Copied: libluv/repos/community-x86_64/PKGBUILD (from rev 510942, libluv/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-09-16 23:13:33 UTC (rev 510943)
@@ -0,0 +1,42 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Jurica Bradarić <jbradaric at gmail.com>
+
+pkgname=libluv
+pkgver=1.30.1
+pkgrel=1
+pkgdesc='Bare libuv bindings for lua'
+arch=('x86_64')
+url='https://github.com/luvit/luv'
+license=('apache')
+provides=('libluv')
+depends=('luajit' 'libuv')
+makedepends=('cmake' 'luajit' 'libuv' 'ninja')
+source=("https://github.com/luvit/luv/releases/download/${pkgver}-0/luv-${pkgver}-0.tar.gz"
+        https://github.com/luvit/luv/raw/df03f2ac6d4e7269cb0c88be3ef44cf1f0de9b24/libluv.pc.in)
+sha256sums=('420fc299f3b25aff55b839e9fe590982f45045b3e53ebeab2449eca7e23a106a'
+            'be2a4909c724e09a50de42b1caa3c82c1b1afee8b80abf20c6944f1df1c7fd0e')
+
+prepare() {
+  # They forgot to ship this file in this release. Hopefully they'll fix it in the next release.
+  cp "$srcdir"/libluv.pc.in "$srcdir"/luv-${pkgver}-0/
+}
+
+build() {
+    mkdir "${srcdir}/build"
+    cd "${srcdir}/build"
+    cmake -GNinja \
+      -DWITH_SHARED_LIBUV=ON \
+      -DLUA_BUILD_TYPE=System \
+      -DBUILD_MODULE=OFF \
+      -DBUILD_SHARED_LIBS=ON \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      "${srcdir}/luv-${pkgver}-0"
+    ninja
+}
+
+package() {
+    cd "${srcdir}/build"
+    DESTDIR="${pkgdir}" ninja install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: libluv/repos/community-x86_64/libluv.pc.in (from rev 510942, libluv/trunk/libluv.pc.in)
===================================================================
--- community-x86_64/libluv.pc.in	                        (rev 0)
+++ community-x86_64/libluv.pc.in	2019-09-16 23:13:33 UTC (rev 510943)
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libluv
+Version: @LUV_VERSION@
+Description: Bare and full libuv bindings for Lua/LuaJIT.
+URL: https://github.com/luvit/luv
+
+Libs: -L${libdir} -lluv @LIBS@
+Cflags: -I${includedir}



More information about the arch-commits mailing list