35 lines
937 B
Bash
35 lines
937 B
Bash
# Template file for 'zrandr'
|
|
pkgname=zrandr
|
|
version=0.3.2
|
|
revision=1
|
|
build_style=qmake
|
|
makedepends="qt5-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme xrandr"
|
|
short_desc="Simple Qt5 front end for xrandr"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://github.com/fralonra/zrandr"
|
|
distfiles="https://github.com/fralonra/zrandr/archive/v${version}.tar.gz"
|
|
checksum=04ba7dabbec63f3946ee4e1c8970f90a731928017d930c39ad21119775061a51
|
|
|
|
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
|
|
}
|