31 lines
878 B
Bash
31 lines
878 B
Bash
|
# 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
|
||
|
}
|