void-packages/srcpkgs/clearine/template

33 lines
898 B
Bash

# Template file for 'clearine'
pkgname=clearine
version=0.3
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="Orphaned <orphan@voidlinux.eu>"
homepage="https://github.com/yuune/clearine"
license="MIT"
distfiles="https://github.com/yuune/clearine/archive/${version}.tar.gz"
checksum=5972c2f96ac875e3427b48c8bb4d154634274827518937337c9cfe200f073cc4
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
}