From 247183e6d1def5f1aa2a00781cbc9d63fbbb32ec Mon Sep 17 00:00:00 2001 From: andry-dev Date: Mon, 16 Sep 2019 00:39:01 +0200 Subject: [PATCH] New package: luv-1.30.1.0 --- common/shlibs | 1 + srcpkgs/luv-devel | 1 + srcpkgs/luv/files/libluv.pc.in | 12 ++++++++++++ srcpkgs/luv/template | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 120000 srcpkgs/luv-devel create mode 100644 srcpkgs/luv/files/libluv.pc.in create mode 100644 srcpkgs/luv/template diff --git a/common/shlibs b/common/shlibs index de88e754ae7..ae0c7b287a2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3509,3 +3509,4 @@ libdrumstick-file.so.1 drumstick-1.1.2_1 libdrumstick-alsa.so.1 drumstick-1.1.2_1 libdrumstick-rt.so.1 drumstick-1.1.2_1 libnozzle.so.1 libnozzle1-1.11_2 +libluv.so.1 luv-1.30.1.0_1 diff --git a/srcpkgs/luv-devel b/srcpkgs/luv-devel new file mode 120000 index 00000000000..a70af3ea7cc --- /dev/null +++ b/srcpkgs/luv-devel @@ -0,0 +1 @@ +luv \ No newline at end of file diff --git a/srcpkgs/luv/files/libluv.pc.in b/srcpkgs/luv/files/libluv.pc.in new file mode 100644 index 00000000000..d1544f65045 --- /dev/null +++ b/srcpkgs/luv/files/libluv.pc.in @@ -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} diff --git a/srcpkgs/luv/template b/srcpkgs/luv/template new file mode 100644 index 00000000000..3c32777f5a5 --- /dev/null +++ b/srcpkgs/luv/template @@ -0,0 +1,34 @@ +# Template file for 'luv' +pkgname=luv +version=1.30.1.0 +revision=1 +_distver="${version%.*}-${version##*.}" +wrksrc=luv-${_distver} +build_style=cmake +configure_args="-DLUA_BUILD_TYPE=System -DBUILD_MODULE=OFF -DBUILD_SHARED_LIBS=ON" +makedepends="libuv-devel LuaJIT-devel" +depends="lua libuv LuaJIT" +short_desc="Bare libuv bindings for lua" +maintainer="andry-dev " +license="Apache-2.0" +homepage="https://github.com/luvit/luv" +distfiles="https://github.com/luvit/luv/releases/download/${_distver}/luv-${_distver}.tar.gz" +checksum="420fc299f3b25aff55b839e9fe590982f45045b3e53ebeab2449eca7e23a106a" + +if [ "$CROSS_BUILD" -a "$XBPS_MACHINE" = "x86_64" ]; then + hostmakedepends+=" gcc-multilib" +fi + +post_extract() { + cp ${FILESDIR}/libluv.pc.in ${wrksrc}/libluv.pc.in +} + +luv-devel_package() { + depends="${makedepends} libluv>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/*.so + } +}