From d5b08f6e20bd86f208b5e50bd6df8b745bdb454e Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Tue, 26 Jun 2018 12:29:23 +0200 Subject: [PATCH] New package: QSyncthingTray-0.5.8 --- .../QSyncthingTray/files/checksum-logos.txt | 6 +++ .../files/qsyncthingtray.desktop | 7 ++++ srcpkgs/QSyncthingTray/template | 40 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 srcpkgs/QSyncthingTray/files/checksum-logos.txt create mode 100644 srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop create mode 100644 srcpkgs/QSyncthingTray/template diff --git a/srcpkgs/QSyncthingTray/files/checksum-logos.txt b/srcpkgs/QSyncthingTray/files/checksum-logos.txt new file mode 100644 index 00000000000..88ea5893abe --- /dev/null +++ b/srcpkgs/QSyncthingTray/files/checksum-logos.txt @@ -0,0 +1,6 @@ +b1246e0dd30d4714ac956d4fb515b8a9ff0b88c42c776e52097957540b8ae153 logo-128.png +8592e8a04db671117342578016a2836de2f2928ec2a218eb80ce2f46bcc29919 logo-256.png +a4aea427d937d80ac0b646ec1b2014e2d502a9c24614e84a702b5c8590d057d7 logo-32.png +ec00d46357a1fc842aed79916ce967dbb6e00ea49c5d9f9644ca3b3ff1a51694 logo-512.png +770cde8d7a7d351bc24339649a501a774f2dc550ba692ab4e7518e63d8f4a45f logo-64.png +32a59ba5e16eea315c533d38358107984049d54c8130122cd0a63480fffa80dd logo-scalable.svg diff --git a/srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop b/srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop new file mode 100644 index 00000000000..d652d105c8e --- /dev/null +++ b/srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=QSyncthingTray +Comment=Tray App for Syncthing written in C++ +Exec=QSyncthingTray +Icon=qsyncthingtray +Terminal=false diff --git a/srcpkgs/QSyncthingTray/template b/srcpkgs/QSyncthingTray/template new file mode 100644 index 00000000000..092edf00195 --- /dev/null +++ b/srcpkgs/QSyncthingTray/template @@ -0,0 +1,40 @@ +# Template file for 'QSyncthingTray' +pkgname=QSyncthingTray +version=0.5.8 +revision=1 +build_style=cmake +hostmakedepends="qt5-qmake qt5-host-tools" +makedepends="qt5-declarative-devel qt5-webengine-devel qt5-webchannel-devel + qt5-location-devel qt5-quickcontrols2-devel qt5-devel" +short_desc="Tray App for Syncthing written in C++" +maintainer="Morgan Bazalgette " +license="LGPL-3.0-or-later" +homepage="https://github.com/sieren/QSyncthingTray" +distfiles="https://github.com/sieren/QSyncthingTray/archive/${version}.tar.gz" +checksum=ff428ac5a09e5df7bde3d71044062de104a6cb17a2918ae317061f5ad1394480 + +do_install() { + # Install main binary + vbin ./build/QSyncthingTray + + # Desktop file + vmkdir usr/share/applications + vcopy ${FILESDIR}/qsyncthingtray.desktop usr/share/applications + # Download icons + mkdir -p ${wrksrc}/icons + cd ${wrksrc}/icons + for suffix in 'only.svg>logo-scalable.svg' {32,64,128,256,512}.png; do + xbps-uhelper fetch \ + "https://raw.githubusercontent.com/syncthing/syncthing/"\ +"7f0603effa8ff465ea0a96c6dd877c0fe6a1cb78/assets/logo-${suffix}" + done + sha256sum --check ${FILESDIR}/checksum-logos.txt || exit 1 + # Install icons + vmkdir usr/share/icons/hicolor + vinstall ./logo-scalable.svg 644 \ + usr/share/icons/hicolor/scalable/apps/ qsyncthingtray.svg + for size in 32 64 128 256 512; do + vinstall ./logo-${size}.png 644 \ + usr/share/icons/hicolor/${size}x${size}/apps/ qsyncthingtray.png + done +}