[arch-commits] Commit in (5 files)

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


    Date: Monday, September 16, 2019 @ 23:13:12
  Author: svenstaro
Revision: 510942

Moving libluv from AUR for neovim

Added:
  libluv/
  libluv/repos/
  libluv/trunk/
  libluv/trunk/PKGBUILD
  libluv/trunk/libluv.pc.in

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

Added: libluv/trunk/PKGBUILD
===================================================================
--- libluv/trunk/PKGBUILD	                        (rev 0)
+++ libluv/trunk/PKGBUILD	2019-09-16 23:13:12 UTC (rev 510942)
@@ -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:

Added: libluv/trunk/libluv.pc.in
===================================================================
--- libluv/trunk/libluv.pc.in	                        (rev 0)
+++ libluv/trunk/libluv.pc.in	2019-09-16 23:13:12 UTC (rev 510942)
@@ -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