New package: QSyncthingTray-0.5.8

This commit is contained in:
Morgan Bazalgette 2018-06-26 12:29:23 +02:00 committed by Johannes
parent 711ec69178
commit d5b08f6e20
3 changed files with 53 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=QSyncthingTray
Comment=Tray App for Syncthing written in C++
Exec=QSyncthingTray
Icon=qsyncthingtray
Terminal=false

View File

@ -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 <the@howl.moe>"
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
}