testing/dnote: upgrade to 0.16.0 & update license

This commit is contained in:
qaqland 2025-12-10 16:44:02 +08:00 committed by Achill Gilgenast
parent 749f6aea6c
commit a1008c7ed3

View File

@ -1,12 +1,12 @@
# Contributor: qaqland <qaq@qaq.land>
# Maintainer: qaqland <qaq@qaq.land>
pkgname=dnote
pkgver=0.15.4
pkgrel=1
pkgver=0.16.0
pkgrel=0
pkgdesc="A simple command line notebook for programmers (cli)"
url="https://www.getdnote.com/"
arch="all !armhf !armv7 !x86" # no 32 support
license="GPL-3.0-or-later"
license="Apache-2.0"
makedepends="go"
checkdepends="bash"
options="net"
@ -18,12 +18,6 @@ subpackages="
source="$pkgname-$pkgver.tar.gz::https://github.com/dnote/dnote/archive/refs/tags/cli-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-cli-v$pkgver"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
export GOOS=linux
export CGO_ENABLED=1
# upstream's makefile is made for github release, only need build here
build() {
local ldflags="-X main.apiEndpoint=https://api.getdnote.com \
@ -42,8 +36,7 @@ check() {
package() {
install -Dm755 build/cli "$pkgdir"/usr/bin/dnote
install -Dm644 README.md LICENSE licenses/GPLv3.txt \
-t "$pkgdir"/usr/share/doc/dnote/
install -Dm644 README.md LICENSE -t "$pkgdir"/usr/share/doc/dnote/
install -Dm644 pkg/cli/dnote-completion.bash \
"$pkgdir"/usr/share/bash-completion/completions/dnote
@ -52,5 +45,5 @@ package() {
}
sha512sums="
58ed63ebc3f5c494afd11e644c22d2bb6b35f475fe1b7b265aa5e0931d22137d6ae8314b3be0aa48df5660d8f82fcddc8d49de65e5efc5a469e3e7453e3ff291 dnote-0.15.4.tar.gz
4a849de4f613f1014994a06eeacb57716203aafea3246f82d0784708329b3c3c7656a348ba28a6b49d3be47eb86956e99ea36990a5ada1d78bf7b15a36820354 dnote-0.16.0.tar.gz
"