blob: dd15e063e9c1d789a03131b6f16c6cbbcdd10dcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
set -xe
source ./PKGBUILD
GITLAB_USER="azelpg"
PROJECT_ID=$(curl "https://gitlab.com/api/v4/users/${GITLAB_USER}/projects" | jq '.[] | select(.path == "'"${pkgname}"'") | .id')
LATEST_RELEASE=$(curl "https://gitlab.com/api/v4/projects/${PROJECT_ID}/releases" | jq -r '.[0].tag_name' | sed 's/^v//')
sed -i 's/pkgver=.*/pkgver='"${LATEST_RELEASE}"'/' PKGBUILD
updpkgsums
|