update nebula-bgme lilac
This commit is contained in:
parent
27cb986e8e
commit
612c1a390e
|
@ -13,11 +13,7 @@ options=('!lto')
|
||||||
conflicts=('nebula')
|
conflicts=('nebula')
|
||||||
provides=('nebula')
|
provides=('nebula')
|
||||||
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('c4771ce6eb3e142f88f5f4c12443cfca140bf96b2746c74f9536bd1a362f3f88')
|
||||||
|
|
||||||
pkgver() {
|
|
||||||
curl -s https://api.github.com/repos/slackhq/nebula/releases/latest | jq -r ".tag_name" | sed 's/v//g'
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${_pkgname}-${pkgver}"
|
cd "${_pkgname}-${pkgver}"
|
||||||
|
|
18
repo/nebula-bgme/lilac.py
Normal file
18
repo/nebula-bgme/lilac.py
Normal file
|
@ -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)
|
|
@ -4,12 +4,9 @@ maintainers:
|
||||||
|
|
||||||
build_prefix: extra-x86_64
|
build_prefix: extra-x86_64
|
||||||
|
|
||||||
pre_build: vcs_update
|
|
||||||
|
|
||||||
post_build: git_pkgbuild_commit
|
post_build: git_pkgbuild_commit
|
||||||
|
|
||||||
update_on:
|
update_on:
|
||||||
- source: github
|
- source: github
|
||||||
github: slackhq/nebula
|
github: slackhq/nebula
|
||||||
use_latest_release: true
|
use_latest_release: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue