void-packages/srcpkgs/micro/template
2020-02-28 09:03:14 +01:00

23 lines
865 B
Bash

# Template file for 'micro'
pkgname=micro
version=2.0.2
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=c51f84955e5fe924c34b4f7e06d17cd8731022cf
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=47937983c503e56241f4457d27da7223eeda93d09c28c36c4617d031edb3a2a4
post_install() {
vlicense LICENSE
}