Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darkman: update to 2.0.1., add shell completions #50832

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions srcpkgs/darkman/template
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Template file for 'darkman'
pkgname=darkman
version=1.5.4
revision=2
version=2.0.1
revision=1
build_style=go
build_helper=qemu
go_import_path="gitlab.com/WhyNotHugo/darkman"
go_package="${go_import_path}/cmd/darkman"
go_ldflags="-X main.Version=${version}"
Expand All @@ -14,7 +15,18 @@ 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
checksum=8bfcf0884c8a71b523d675f47037c5e4f51dcb52ef59a3b7d538a82c3cf41fbe
_completions="zsh bash fish"

post_build() {
if [ "$XBPS_TARGET_MACHINE" != "aarch64-musl" ]; then
# The qemu run segfaults on aarch64-musl.
local _bin="$(find ${GOPATH}/bin -name darkman)"
for _shell in ${_completions}; do
vtargetrun "${_bin}" completion ${_shell} > darkman.${_shell}
done
fi
}

post_install() {
vmkdir usr/share/dbus-1/services
Expand All @@ -28,4 +40,10 @@ post_install() {
vman darkman.1

vlicense LICENCE

if [ "$XBPS_TARGET_MACHINE" != "aarch64-musl" ]; then
for _shell in ${_completions}; do
vcompletion darkman.${_shell} ${_shell}
done
fi
}