From 44319b2d00be7c14aa95a1e7d15af7b9d876ae1f Mon Sep 17 00:00:00 2001 From: Reed Wade Date: Mon, 16 Mar 2020 15:55:03 +0100 Subject: [PATCH] New package: matterhorn-50200.7.0 --- srcpkgs/matterhorn/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/matterhorn/template diff --git a/srcpkgs/matterhorn/template b/srcpkgs/matterhorn/template new file mode 100644 index 00000000000000..11f112dc88ef43 --- /dev/null +++ b/srcpkgs/matterhorn/template @@ -0,0 +1,25 @@ +# Template file for 'matterhorn' +pkgname=matterhorn +version=50200.7.0 +revision=1 +hostmakedepends="cabal-install ghc" +makedepends="zlib-devel ncurses-devel" +short_desc="Terminal-based chat client for MatterMost" +maintainer="Stacy Harper " +license="BSD-3-Clause" +homepage="https://github.com/matterhorn-chat/matterhorn" +changelog="https://raw.githubusercontent.com/matterhorn-chat/matterhorn/master/CHANGELOG.md" +distfiles="https://github.com/matterhorn-chat/matterhorn/archive/${version}.tar.gz" +checksum=24ee5ac95c37e30e209ed6d39f4e9986c2f37365382e4f56a8e1988516f26ff3 +nopie_files="/usr/bin/matterhorn" + +do_build() { + rm -f cabal.project + cabal new-update + cabal new-build --jobs="${XBPS_MAKEJOBS}" --disable-executable-dynamic +} + +do_install() { + vbin dist-newstyle/build/"${XBPS_MACHINE}"-linux/ghc-8.6.5/matterhorn-${version}/x/matterhorn/build/matterhorn/matterhorn + vlicense LICENSE +}