void-packages/srcpkgs/dnote-cli/template
2019-04-09 11:50:55 -03:00

31 lines
710 B
Bash

# Template file for 'dnote-cli'
pkgname=dnote-cli
version=0.6.2
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=886f09dc20ff9cb56bdbc71eb7e78e7099b541fa0d830d4b4d0251b2fb32ad06
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
}