new package: libnats-c
This commit is contained in:
parent
1effbc97cc
commit
8393f93a34
10
packages/libnats-c/CMakeLists.txt.patch
Normal file
10
packages/libnats-c/CMakeLists.txt.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -184,7 +184,6 @@
|
||||
else(APPLE)
|
||||
set(NATS_OS "LINUX")
|
||||
set(NATS_USE_PTHREAD "-pthread")
|
||||
- set(NATS_EXTRA_LIB "rt")
|
||||
endif(APPLE)
|
||||
if (${NATS_BUILD_ARCH} MATCHES "32")
|
||||
if(NOT APPLE)
|
8
packages/libnats-c/build.sh
Normal file
8
packages/libnats-c/build.sh
Normal file
@ -0,0 +1,8 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://nats-io.github.io/nats.c/
|
||||
TERMUX_PKG_DESCRIPTION="A C client for the NATS messaging system"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=3.3.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/nats-io/nats.c/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=16e700d912034faefb235a955bd920cfe4d449a260d0371b9694d722eb617ae1
|
||||
TERMUX_PKG_DEPENDS="libprotobuf-c, openssl"
|
10
packages/libnats-c/src-libnats.pc.in.patch
Normal file
10
packages/libnats-c/src-libnats.pc.in.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/src/libnats.pc.in
|
||||
+++ b/src/libnats.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix="@CMAKE_INSTALL_PREFIX@"
|
||||
exec_prefix="${prefix}"
|
||||
-libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@"
|
||||
+libdir="@CMAKE_INSTALL_LIBDIR@"
|
||||
includedir="${prefix}/include"
|
||||
|
||||
Name: NATS & NATS Streaming - C Client library
|
Loading…
Reference in New Issue
Block a user