void-packages/srcpkgs/dnote-cli/template

32 lines
710 B
Bash

# Template file for 'dnote-cli'
pkgname=dnote-cli
version=0.6.1
revision=1
wrksrc="cli-${version}"
build_style=go
go_import_path=github.com/dnote-io/cli
go_build_tags="fts5"
hostmakedepends="git dep"
short_desc="Capture what you learn as you code without leaving the command line"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="MIT"
homepage="https://dnote.io/"
distfiles="https://github.com/dnote-io/cli/archive/v${version}.tar.gz"
checksum=d6cef3de78b35f2a5953783bead650ea58db87f0ed8ca6f2c4963d197da5df89
pre_build() {
cd $GOSRCPATH
dep ensure
}
post_install() {
vlicense LICENSE
# Rename the bianry form cli to dnote
mv ${DESTDIR}/usr/bin/{cli,dnote}
}
do_check() {
./scripts/test.sh
}