diff --git a/srcpkgs/nchat/template b/srcpkgs/nchat/template new file mode 100644 index 00000000000000..da6383685bc5ea --- /dev/null +++ b/srcpkgs/nchat/template @@ -0,0 +1,24 @@ +# Template file for 'nchat' +pkgname=nchat +version=5.16.9 +revision=1 +archs="x86_64 i686" +build_style=cmake +configure_args="-DHAS_DUMMY=OFF -DCMAKE_INSTALL_MANDIR=/usr/share/man" +hostmakedepends="go gperf pkg-config python3" +makedepends="file-devel ncurses-devel openssl-devel sqlite-devel zlib-devel" +short_desc="Terminal-based messaging client for Linux" +maintainer="orahcio " +license="GPL-3.0-or-later" +homepage="https://github.com/d99kris/nchat" +changelog="https://github.com/d99kris/nchat/releases" +distfiles="https://github.com/d99kris/nchat/archive/refs/tags/v${version}.tar.gz" +checksum=883eb1f398d233a6fce9112240357e923aa3c338728858d428d137be3405aeb4 + +pre_configure() { + # Whatsapp feature has no musl support + # See https://github.com/d99kris/nchat/issues/204 + if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + configure_args+=" -DHAS_WHATSAPP=OFF" + fi +}