From ad8bcc5c857c9245bcbd52df13017f8de612ed08 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Tue, 2 Aug 2022 02:27:39 -0400 Subject: [PATCH] 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). --- srcpkgs/micro/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/micro/template b/srcpkgs/micro/template index 8c6032324fcf..669bc7d89232 100644 --- a/srcpkgs/micro/template +++ b/srcpkgs/micro/template @@ -1,7 +1,7 @@ # Template file for 'micro' pkgname=micro version=2.0.11 -revision=1 +revision=2 build_style=go go_import_path="github.com/zyedidia/micro/v2" go_package="${go_import_path}/cmd/micro" @@ -15,6 +15,10 @@ 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