void-packages/srcpkgs/micro/template
Érico Rolim b8c5e59acd srcpkgs/: clean up Go packages.
Fix small typos, expand some variables, leave comments for updates.
2021-02-19 12:07:43 -03:00

24 lines
908 B
Bash

# Template file for 'micro'
pkgname=micro
version=2.0.8
revision=1
build_style=go
go_import_path="github.com/zyedidia/micro/v2"
go_package="${go_import_path}/cmd/micro"
go_ldflags="-X github.com/zyedidia/micro/v2/internal/util.Version=${version}"
# Adding CompileDate is bad for reproducibility and adding CommitHash
# is redundant as we use a tag to build the package.
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=3e1b7483aa2afffa8afc2c710e22541961ac3de5e026efb4bdddc8ade00d4de0
post_install() {
vlicense LICENSE
vman assets/packaging/micro.1
vinstall assets/packaging/micro.desktop 644 usr/share/applications
vinstall assets/micro-logo-mark.svg 644 usr/share/pixmaps micro.svg
}