void-packages/srcpkgs/zrandr/template

35 lines
929 B
Bash

# Template file for 'zrandr'
pkgname=zrandr
version=0.3.1
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=1e03e84ade4a74c72c244d34fcdf8594db84a97ba3c44d8306c5e18ab5834c81
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel"
fi
pre_configure() {
lrelease -verbose zrandr.pro
}
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
}