void-packages/srcpkgs/startup/template

74 lines
2.2 KiB
Bash

# Template file for 'startup'
pkgname=startup
version=2.0.3
revision=1
build_style=gnu-configure
configure_args="--disable-sysvcompat --disable-dconf-bridge --disable-cgroups"
make_dirs="/var/log/startup 0750 root adm"
hostmakedepends="autoconf automake libtool pkg-config gettext-devel nih-devel"
makedepends="libnih-devel eudev-libudev-devel dbus-devel json-c-devel"
checkdepends="python3 dbus"
short_desc="Event driven task and service manager"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="GPL-2.0-only"
homepage="https://gitlab.com/chinstrap/startup"
changelog="https://gitlab.com/chinstrap/startup/raw/master/NEWS"
distfiles="https://gitlab.com/chinstrap/startup/-/archive/${version}/startup-${version}.tar.gz"
checksum=668fa38b2b4d4924309546c09a53690f4c5e31faf44be3f0e0ca826bf23f00f5
pre_configure() {
autoreconf -fi
}
post_install() {
local cmds="init-checkconf initctl2dot initctl reload restart start
startup startup-monitor status stop"
for cmd in ${cmds}; do
vcompletion "contrib/fish_completion/${cmd}.fish" fish "$cmd"
done
rm -- "${DESTDIR}/usr/lib/libupstart.la"
}
startup-tools_package() {
depends="${sourcepkg}>=${version}_${revision} python3-dbus python3-gobject"
short_desc+=" - monitoring and analysis tools"
pkg_install() {
vmove usr/bin/initctl2dot
vmove usr/bin/startup-monitor
vmove usr/share/icons
vmove usr/share/applications
vmove usr/share/man/man8/startup-monitor.8
vmove usr/share/fish/vendor_completions.d/startup-monitor.fish
vmove usr/share/fish/vendor_completions.d/initctl2dot.fish
}
}
startup-bridge-udev_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - udev event bridge"
pkg_install() {
vmove usr/libexec/startup/bridge/udev
vmove "usr/share/startup/bridge-udev.*"
vmove "usr/share/xdg/startup/bridge-udev.*"
vmove usr/share/man/man8/startup-udev-bridge.8
}
}
libupstart_package() {
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/libupstart.so.*"
}
}
libupstart-devel_package() {
depends="libupstart>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}