Can't be json copyed (installed) by app itself from standard location (/usr/share/runkit/services.json)
I am trying to Void's way of managing program for/in void
But I think there isn't way to install anything to users home folder by xbps
That must should be handled by app on first start
I am creating xbps-src template and not sure how to handle that...
# Template file for 'runkit'
pkgname=runkit
version=1.4.0
revision=1
build_style=cargo
hostmakedepends="pkg-config rustup"
makedepends="gtk4-devel libadwaita-devel glib-devel pango-devel"
depends="dbus polkit"
short_desc="Graphical manager for runit services"
maintainer="zenobit <zenobit@disroot.org>"
license="MIT"
homepage="https://github.com/Letdown2491/runkit"
changelog="https://raw.githubusercontent.com/Letdown2491/runkit/refs/heads/main/CHANGELOG.md"
distfiles="https://github.com/Letdown2491/runkit/archive/refs/tags/v${version}.tar.gz"
checksum=63c49259d086e1830baee12aa47e5f7ad7bdf1ded98e377d5b9b347bf73065cf
do_build() {
cargo build --release
}
do_install() {
vbin target/release/runkit
vbin target/release/runkitd
}
post_install() {
# icons
for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512; do
vinstall "assets/icons/hicolor/${size}/apps/runkit.png" 644 "usr/share/icons/hicolor/${size}/apps"
done
# icons scalable
vinstall assets/icons/hicolor/scalable/apps/runkit.svg 644 usr/share/icons/hicolor/scalable/apps
# desktop file
vinstall assets/applications/tech.geektoshi.Runkit.desktop 644 usr/share/applications
# service descriptions
vinstall assets/config/services.json 644 /usr/share/runkit/
vbin target/release/services-merge
# dbus service
vinstall assets/dbus-1/services/tech.geektoshi.Runkit.service 644 usr/share/dbus-1/services
vinstall assets/dbus-1/system-services/tech.geektoshi.Runkit1.service 644 usr/share/dbus-1/system-services
vinstall assets/dbus-1/system.d/tech.geektoshi.Runkit1.conf 644 etc/dbus-1/system.d
# polkit policy
vinstall assets/polkit-1/actions/tech.geektoshi.Runkit.policy 644 usr/share/polkit-1/actions
# readme
vdoc README.md
# license
vlicense LICENSE
}
So I added post install message..
services-merge: tiny utility used by the installer to seed and merge cached service descriptions
services.json should be installed manually
'cp /usr/share/runkit/services.json $HOME/.config/runkit/services.json'
Don't looks to me as ideal solution.
I will see if everything works as expected bit later
Can't be json copyed (installed) by app itself from standard location (/usr/share/runkit/services.json)
I am trying to Void's way of managing program for/in void
But I think there isn't way to install anything to users home folder by xbps
That
mustshould be handled by app on first startI am creating xbps-src template and not sure how to handle that...
So I added post install message..
Don't looks to me as ideal solution.
I will see if everything works as expected bit later