# Template file for 'micro'
pkgname=micro
version=1.2.0
revision=3
# 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=be8124154b2b3e761578a186c42a18ace5a43865
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="A modern and intuitive terminal-based text editor"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
homepage="https://github.com/zyedidia/micro"
distfiles="https://github.com/zyedidia/micro/archive/v${version}.tar.gz"
checksum=108876de0d136b2ec2ffc7e2f8897338ae1f56ac5db88eff4ae1772191df03bb

post_install() {
	vlicense LICENSE
}
