void-packages/srcpkgs/clearine/template
Jürgen Buchmüller 05315a4d89
clearine: remove xrandr from hostmakedepends
Detecting the current display size doesn't work on a headless builder.
Furthermore the Makefile isn't used anymore to install the package.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-04-07 11:25:13 +02:00

32 lines
898 B
Bash

# Template file for 'clearine'
pkgname=clearine
version=0.2
revision=1
build_style=gnu-makefile
conf_files="/etc/clearine.conf"
depends="gtk+3 python3-gobject"
short_desc="GTK3-based logout-window overlay for independent windowmanager"
maintainer="cr6git <quark6@protonmail.com>"
homepage="https://github.com/yuune/clearine"
license="MIT"
distfiles="https://github.com/yuune/clearine/archive/${version}.tar.gz"
checksum=efc693928888e40c7e810572bfeb2e7aa6a2007d7070af05555f3757d9adb2e4
noarch=yes
do_build() {
sed -i data/config-* \
-e "s;^\(restart =\) .*;\1 reboot;" \
-e "s;^\(shutdown =\) .*;\1 poweroff;"
}
do_install() {
local f
vmkdir usr/share/themes/Clearine-Fallback/clearine
vinstall data/config-1080 644 etc clearine.conf
for f in data/theme-default/*.svg; do
vinstall $f 644 usr/share/themes/Clearine-Fallback/clearine
done
vbin clearine.py clearine
vlicense LICENSE
}