From c1465aa3703436b211861646383a2144e04019f6 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 31 Dec 2017 19:56:38 -0200 Subject: [PATCH] New package: nheko-0.1.0. Closes: #10311 [via git-merge-pr] --- srcpkgs/nheko/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/nheko/template diff --git a/srcpkgs/nheko/template b/srcpkgs/nheko/template new file mode 100644 index 00000000000..8337865c2ab --- /dev/null +++ b/srcpkgs/nheko/template @@ -0,0 +1,31 @@ +# Template file for 'nheko' +pkgname=nheko +version=0.1.0 +revision=1 +wrksrc="nheko" +build_style=cmake +hostmakedepends="qt5-qmake qt5-host-tools" +makedepends="lmdb-devel qt5-tools-devel qt5-multimedia-devel" +short_desc="Desktop client for the Matrix protocol" +maintainer="maxice8 " +license="GPL-3" +homepage="https://github.com/mujx/nheko" +distfiles="https://github.com/mujx/nheko/releases/download/v${version}/nheko.tar.bz2>nheko-${version}.tar.bz2" +checksum=d20eb46a9f0fdb4b395da9f5b5396758018d3053d2641ec54cb065d5cca64cf4 + +do_install() { + vmkdir usr/share/pixmaps + vmkdir usr/share/applications + + vbin build/nheko + + vinstall resources/nheko-256.png 644 usr/share/pixmaps + vinstall resources/nheko.desktop 644 usr/share/applications + + local icon_size icon_dir + for icon_size in 16 32 48 64 128 256 512; do + icon_dir="usr/share/icons/hicolor/${icon_size}x${icon_size}/apps" + vmkdir "$icon_dir" + vinstall resources/nheko-${icon_size}.png 644 $icon_dir/nheko.png + done +}