diff --git a/repo/nebula-bgme/PKGBUILD b/repo/nebula-bgme/PKGBUILD index 9463248..129e692 100644 --- a/repo/nebula-bgme/PKGBUILD +++ b/repo/nebula-bgme/PKGBUILD @@ -13,11 +13,7 @@ options=('!lto') conflicts=('nebula') provides=('nebula') source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") -sha256sums=('SKIP') - -pkgver() { - curl -s https://api.github.com/repos/slackhq/nebula/releases/latest | jq -r ".tag_name" | sed 's/v//g' -} +sha256sums=('c4771ce6eb3e142f88f5f4c12443cfca140bf96b2746c74f9536bd1a362f3f88') build() { cd "${_pkgname}-${pkgver}" diff --git a/repo/nebula-bgme/lilac.py b/repo/nebula-bgme/lilac.py new file mode 100644 index 0000000..63dd9ef --- /dev/null +++ b/repo/nebula-bgme/lilac.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +from lilaclib import * + + +def get_latest_release_tag(): + resp = s.get( + 'https://api.github.com/repos/slackhq/nebula/releases/latest' + ) + body = resp.json() + return body["tag_name"] + + +def pre_build(): + tag = get_latest_release_tag() + pkgver = tag.lstrip('v') + + update_pkgver_and_pkgrel(pkgver, True) diff --git a/repo/nebula-bgme/lilac.yaml b/repo/nebula-bgme/lilac.yaml index 72220af..610b46b 100644 --- a/repo/nebula-bgme/lilac.yaml +++ b/repo/nebula-bgme/lilac.yaml @@ -4,12 +4,9 @@ maintainers: build_prefix: extra-x86_64 -pre_build: vcs_update - post_build: git_pkgbuild_commit update_on: - source: github github: slackhq/nebula use_latest_release: true -