void-packages/srcpkgs/zk/template
Luca Bilke 38ed5f9f5f
Some checks failed
ci/woodpecker/push/build/5 Pipeline failed
fix zk
2024-01-28 13:58:53 +01:00

39 lines
974 B
Text

# Template file for 'zk'
pkgname=zk
version=0.14.0
revision=1
homepage="https://github.com/zk-org/zk/"
license="GPL-3.0"
short_desc="A plain text note-taking assistant"
maintainer="luca <luca@snaile.de>"
changelog="https://raw.githubusercontent.com/zk-org/zk/main/CHANGELOG.md"
distfiles="https://github.com/zk-org/zk/archive/refs/tags/v${version}.tar.gz"
go_import_path=github.com/mickael-menu/zk
go_build_tags=fts5
build_style=go
pre_fetch() {
if ! cd "$XBPS_SRCDISTDIR"; then
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
exit 1
fi
url="${distfiles}"
distfile="$(basename "$url")"
flock "${distfile}.part" $fetch_cmd "$url"
flock -n "${distfile}.part" rm -f "${distfile}.part"
checksum=$(${XBPS_DIGEST_CMD} "$distfile")
mkdir -p "$XBPS_SRCDISTDIR/by_sha256"
mv "$distfile" "$XBPS_SRCDISTDIR/by_sha256/${checksum}_${distfile}"
}
do_check() {
go test -v
}
post_install() {
vlicense LICENSE
}