mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
+cloudflare.com/cloudflared (#5540)
* new file: projects/cloudflare.com/cloudflared/package.yml * -buildmode=pie for linux * debug * hahaha :D * remove comment
This commit is contained in:
parent
9c6606370b
commit
1c7a88c7b6
1 changed files with 28 additions and 0 deletions
28
projects/cloudflare.com/cloudflared/package.yml
Normal file
28
projects/cloudflare.com/cloudflared/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/cloudflare/cloudflared/archive/refs/tags/{{version.tag}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: cloudflare/cloudflared
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
script:
|
||||||
|
- run: sed -i 's|go build|go build -buildmode=pie|g' Makefile
|
||||||
|
if: linux
|
||||||
|
- make install $ARGS
|
||||||
|
env:
|
||||||
|
DATE: $(date -u +%FT%TZ)
|
||||||
|
ARGS:
|
||||||
|
- VERSION={{version}}
|
||||||
|
- DATE=${DATE}
|
||||||
|
- PACKAGE_MANAGER=pkgx
|
||||||
|
- PREFIX={{prefix}}
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/cloudflared
|
||||||
|
|
||||||
|
test:
|
||||||
|
- cloudflared help | grep {{version}}
|
||||||
|
- cloudflared update 2>&1 | grep 'cloudflared was installed by pkgx'
|
Loading…
Reference in a new issue