void-packages/srcpkgs/clearine/template

33 lines
854 B
Bash

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