void-packages/srcpkgs/darkman/template

32 lines
1.1 KiB
Bash

# Template file for 'darkman'
pkgname=darkman
version=1.5.4
revision=2
build_style=go
go_import_path="gitlab.com/WhyNotHugo/darkman"
go_package="${go_import_path}/cmd/darkman"
go_ldflags="-X main.Version=${version}"
hostmakedepends="scdoc"
depends="dbus"
short_desc="Daemon for dark-mode and light-mode transitions on Linux desktop"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="ISC"
homepage="https://darkman.whynothugo.nl/"
changelog="https://gitlab.com/WhyNotHugo/darkman/-/raw/main/CHANGELOG.md"
distfiles="https://gitlab.com/WhyNotHugo/darkman/-/archive/v${version}/darkman-v${version}.tar"
checksum=c19b33a62a90120df53ccfa823eb69da24429bb63101d57e9604e36eb3de9e38
post_install() {
vmkdir usr/share/dbus-1/services
vinstall contrib/dbus/org.freedesktop.impl.portal.desktop.darkman.service 644 usr/share/dbus-1/services
vinstall contrib/dbus/nl.whynothugo.darkman.service 644 usr/share/dbus-1/services
vmkdir usr/share/xdg-desktop-portal/portals
vinstall contrib/portal/darkman.portal 644 usr/share/xdg-desktop-portal/portals
scdoc < darkman.1.scd > darkman.1
vman darkman.1
vlicense LICENCE
}