void-packages/srcpkgs/micro/template
0x5c ee420d4794 micro: fix broken resource bundling.
The v2.0.11 update changed the way resources are bundled, now requiring an
additional step to 'generate' the bundle. Since I happened to only test the
original update on files that I have custom syntax for, I only realised the
presence of the regression after the update got merged (#38402).
2022-08-02 04:07:12 -04:00

27 lines
921 B
Bash

# Template file for 'micro'
pkgname=micro
version=2.0.11
revision=2
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.
short_desc="Modern and intuitive terminal-based text editor"
maintainer="0x5c <dev@0x5c.io>"
license="MIT"
homepage="https://micro-editor.github.io"
distfiles="https://github.com/zyedidia/micro/archive/v${version}.tar.gz"
checksum=1bb499edeaaadf1fe1791a49f96ab672c4e1add31ee125882ccd85a0fc8a4abe
pre_build() {
GOARCH= go generate ./runtime
}
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
}