blob: 4da893e2c48e552059877b3b0c11b9ac9163c091 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
srcinfo:
makepkg --printsrcinfo > .SRCINFO
rm -rf steampipe-*.tgz
integrity:
rm -rf steampipe-*.tgz
makepkg -g
generate:
@sed -i -r "s/pkgver=.*/pkgver=$$VER/g" PKGBUILD
@sed -i -r "s/sha256sums=.*/sha256sums=(\\'$$SHA256\\')/g" PKGBUILD
.ONESHELL:
specificrelease:
@export VER=0.9.0
@export SHA256=a26a9439b686c658c547db508af5c1187781eb3014964f3f312ab94042480cfa
@make generate srcinfo
.ONESHELL:
latestrelease:
@export VER=$(shell curl -sL https://api.github.com/repos/turbot/steampipe/releases/latest | jq -r ".name" | cut -c 2-)
@export SHA256=$(shell curl -sL https://api.github.com/repos/turbot/steampipe/releases/latest | jq -r ".assets[] | select(.name | contains(\"checksums.txt\")) | .browser_download_url" | wget -q -i - -O - | grep linux_amd64.tar.gz | cut -d' ' -f1)
@make generate srcinfo
|