mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+github.com/canonical/pebble (#4862)
* +github.com/canonical/pebble * does not compile on darwin presently * Update package.yml --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
3e239197b7
commit
a626b479fc
39
projects/github.com/canonical/pebble/package.yml
Normal file
39
projects/github.com/canonical/pebble/package.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
distributable:
|
||||
url: git+https://github.com/canonical/pebble
|
||||
ref: v{{version.raw}}
|
||||
|
||||
display-name: canonical/pebble
|
||||
|
||||
versions:
|
||||
github: canonical/pebble
|
||||
strip:
|
||||
- /^v/
|
||||
|
||||
platforms:
|
||||
# not compiling presently
|
||||
# looks like canonical's fork of go-flags (several years old) doesn't support unix.Prctl properly on darwin
|
||||
# - darwin
|
||||
- linux
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
git-scm.org: '*'
|
||||
gnu.org/sed: '*'
|
||||
cmake.org: ^3
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -w
|
||||
- -s
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
script:
|
||||
- go generate ./cmd
|
||||
- go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}/bin/pebble" --trimpath ./cmd/pebble
|
||||
|
||||
provides:
|
||||
- bin/pebble
|
||||
|
||||
test: test "$(pebble version --client)" = v{{version}}
|
Loading…
Reference in a new issue