30 lines
688 B
Bash
30 lines
688 B
Bash
# Template file for 'dnote-cli'
|
|
pkgname=dnote-cli
|
|
version=0.4.9
|
|
revision=2
|
|
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.eu>"
|
|
license="MIT"
|
|
homepage="https://dnote.io/"
|
|
distfiles="https://github.com/dnote-io/cli/archive/v${version}.tar.gz"
|
|
checksum=475f4f8f8a01fc0817e63e69041446f167d4eb0e35c0b0a7a6162d8cde20748d
|
|
|
|
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
|
|
}
|