mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
08a08a9807
* +coredns * what url is this? * fix(blink) * Add git subtree support to git-scm.org (#1253) * Add git subtree support to git-scm.org * fix: git subtree tests * fix: test * +gops (#1247) * +gops * Update package.yml * Delete version.patch --------- Co-authored-by: Jacob Heider <jacob@tea.xyz> * micro-editor.github.io WIP * Fixed version, fixed Linux segfault * simpler version (bypass Makefile) * oops. missed one. --------- Co-authored-by: Leon Si <leon@leondreamed.com> Co-authored-by: Jacob Heider <jacob@tea.xyz> Co-authored-by: Sanchit Ram Arvind <sanchitram@gmail.com> Co-authored-by: James Reynolds <magnsuviri@me.com>
33 lines
918 B
YAML
33 lines
918 B
YAML
distributable:
|
|
url: https://github.com/zyedidia/micro/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: zyedidia/micro/tags
|
|
strip: /^v/
|
|
|
|
provides:
|
|
- bin/micro
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
go.dev: ^1.16
|
|
script: |
|
|
mkdir -p "{{ prefix }}"/{bin,share/man/man1}
|
|
go build -ldflags "$LDFLAGS -X 'github.com/zyedidia/micro/v2/internal/util.CompileDate=$(go run tools/build-date.go)'" ./cmd/micro
|
|
install -m755 micro "{{ prefix }}"/bin
|
|
cp assets/packaging/micro.1 "{{ prefix }}"/share/man/man1
|
|
env:
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X github.com/zyedidia/micro/v2/internal/util.Version={{ version }}
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
GOOS: $(go env GOHOSTOS)
|
|
ADDITIONAL_GO_LINKER_FLAGS: $(go run tools/info-plist.go $GOOS {{ version }})
|
|
GOARCH: $(go env GOHOSTARCH)
|
|
|
|
test: micro -version | grep {{ version }}
|