void-packages/srcpkgs/micro/template
2020-02-19 09:17:03 +01:00

23 lines
865 B
Bash

# Template file for 'micro'
pkgname=micro
version=2.0.1
revision=1
# This will need to be updated along with version as it cannot currently be
# obtained from the tarball, and is necessary if the user is to make error
# reports upsteam.
_commithash=7c71995aaf56113a0c23f30829f52b43a6d8376e
build_style=go
go_import_path="github.com/zyedidia/micro"
go_package="${go_import_path}/cmd/micro"
go_ldflags="-X main.Version=${version} -X 'main.CommitHash=${_commithash}' -X 'main.CompileDate=$(date)'"
hostmakedepends="git"
short_desc="Modern and intuitive terminal-based text editor"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
homepage="https://micro-editor.github.io"
distfiles="https://github.com/zyedidia/micro/archive/v${version}.tar.gz"
checksum=dabbc94f58f63b2b2c4589cdfc83e265019f3ac02e13654bf91927f4bc6434ec
post_install() {
vlicense LICENSE
}