From a64e386726b318b19dec19d3fb7df9eb41600e61 Mon Sep 17 00:00:00 2001 From: cr6git Date: Fri, 4 Aug 2017 01:16:07 +0200 Subject: [PATCH] New package: zrandr --- srcpkgs/zrandr/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/zrandr/template diff --git a/srcpkgs/zrandr/template b/srcpkgs/zrandr/template new file mode 100644 index 0000000000..9b5792d50d --- /dev/null +++ b/srcpkgs/zrandr/template @@ -0,0 +1,30 @@ +# Template file for 'zrandr' +pkgname=zrandr +version=0.2.2 +revision=1 +build_style=qmake +makedepends="qt5-devel" +depends="desktop-file-utils hicolor-icon-theme xrandr" +maintainer="cr6git " +short_desc="Simple Qt5 front end for xrandr" +homepage="https://github.com/fralonra/zrandr" +license="GPL-3" +distfiles="https://github.com/fralonra/zrandr/archive/v${version}.tar.gz" +checksum=53a02f8401648c5658476ddad107c6b5530dcb60f3838325bdf0c70ad71438ca + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-devel" +fi + +do_install() { + vbin zrandr + vinstall build/zrandr.desktop 644 usr/share/applications + + for _i in 16 64 128 256; do + vinstall build/icons/zrandr-${_i}x${_i}.png 644 usr/share/icons/hicolor/${_i}x${_i}/apps zrandr.png + done + + for prog in zrandr; do + vinstall build/icons/${prog}.svg 644 usr/share/icons/hicolor/scalable/apps ${prog}.svg + done +}