diff --git a/net/nchat/Makefile b/net/nchat/Makefile new file mode 100644 index 00000000000..5fdd8a53505 --- /dev/null +++ b/net/nchat/Makefile @@ -0,0 +1,41 @@ +# see https://github.com/d99kris/nchat/issues/76 and net/tdlib (bundled) +NOT_FOR_ARCHS = i386 ${BE_ARCHS} + +# no WhatsApp or Signal: https://github.com/d99kris/nchat/commit/f292853 +COMMENT = CLI Telegram client + +GH_ACCOUNT = d99kris +GH_PROJECT = nchat +GH_TAGNAME = v5.15.26 + +CATEGORIES = net +MAINTAINER = Mykyta Nazarenko + +WANTLIB += ${COMPILER_LIBCXX} c crypto curses execinfo m magic +WANTLIB += png sqlite3 ssl z + +# nchat: MIT +# tdlib: BSLv1.0 +PERMIT_PACKAGE = Yes + +# C++17 +COMPILER = base-clang ports-gcc + +MODULES = devel/cmake + +BUILD_DEPENDS = devel/gperf + +LIB_DEPENDS = databases/sqlite3 \ + devel/libmagic \ + graphics/png + +CONFIGURE_ARGS = -DCCACHE_FOUND=OFF \ + -DCCACHE_PROGRAM=OFF \ + -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON + +post-install: + rm -f ${PREFIX}/lib/*.a + +NO_TEST = Yes + +.include diff --git a/net/nchat/distinfo b/net/nchat/distinfo new file mode 100644 index 00000000000..e3ac7967de3 --- /dev/null +++ b/net/nchat/distinfo @@ -0,0 +1,2 @@ +SHA256 (nchat-5.15.26.tar.gz) = T1pQF0fGmJ/W7NPC0ykERupqH1oYpZgdt8Qgvt2xXTU= +SIZE (nchat-5.15.26.tar.gz) = 7727498 diff --git a/net/nchat/pkg/DESCR b/net/nchat/pkg/DESCR new file mode 100644 index 00000000000..f93fbdec346 --- /dev/null +++ b/net/nchat/pkg/DESCR @@ -0,0 +1,3 @@ +nchat is a multi-protocol terminal-based messaging client for Telegram, +WhatsApp and Signal, altough only the former is currently supported on +OpenBSD. diff --git a/net/nchat/pkg/PLIST b/net/nchat/pkg/PLIST new file mode 100644 index 00000000000..4703ea218ee --- /dev/null +++ b/net/nchat/pkg/PLIST @@ -0,0 +1,4 @@ +@bin bin/nchat +libexec/nchat/ +libexec/nchat/compose +@man man/man1/nchat.1