Merge pull request #7265 from cr6git/Zrandr

New package: zrandr
This commit is contained in:
Enno Boland 2017-09-09 14:52:33 +02:00 committed by GitHub
commit 1171362e1d

30
srcpkgs/zrandr/template Normal file
View file

@ -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 <quark6@protonmail.com>"
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
}