31 lines
689 B
Bash
31 lines
689 B
Bash
# Template file for 'dnote-cli'
|
|
pkgname=dnote-cli
|
|
version=0.5.0
|
|
revision=1
|
|
wrksrc="cli-${version}"
|
|
build_style=go
|
|
go_import_path=github.com/dnote-io/cli
|
|
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=9e23eee160af8c084591368ef6f90fbcb0e0a33f197449f89283add78e9d5352
|
|
|
|
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
|
|
}
|