add zk package
ci/woodpecker/manual/build/2 Pipeline was successful Details
ci/woodpecker/manual/build/1 Pipeline was successful Details
ci/woodpecker/manual/build/4 Pipeline was successful Details
ci/woodpecker/manual/build/3 Pipeline was successful Details
ci/woodpecker/manual/renovate Pipeline was successful Details
ci/woodpecker/manual/build/5 Pipeline was successful Details

This commit is contained in:
Luca Bilke 2024-01-27 23:32:57 +01:00
parent eda0bd5572
commit 1d08e966bc
2 changed files with 39 additions and 0 deletions

View File

@ -4,6 +4,7 @@ matrix:
- tidal-hifi-bin
- ferdium-bin
- font-firacode-nf-ttf
- zk
when:
- event: push

38
srcpkgs/zk/template Normal file
View File

@ -0,0 +1,38 @@
# 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
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
}