diff options
author | Thorben Günther | 2021-06-20 23:47:25 +0200 |
---|---|---|
committer | Thorben Günther | 2021-06-20 23:47:25 +0200 |
commit | 1275220c1cfd02e1c1cfb479c1c2ec4632809797 (patch) | |
tree | d4fb97ee436e0d5204a80bcda3ee20b72c4bf271 | |
parent | 8b0fcefc2bf1df6abe821efed11f8255c237c21f (diff) | |
download | aur-srhtctl.tar.gz |
upgpkg: srhtctl 0.5.0-1
upstream release
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 25 insertions, 14 deletions
@@ -1,14 +1,15 @@ pkgbase = srhtctl pkgdesc = CLI for interacting with the sr.ht API - pkgver = 0.4.0 - pkgrel = 3 + pkgver = 0.5.0 + pkgrel = 1 url = https://hub.xenrox.net/~xenrox/srhtctl/ arch = x86_64 license = GPL3 - makedepends = git makedepends = go - source = srhtctl-0.4.0.tar.gz::https://git.xenrox.net/~xenrox/srhtctl/archive/0.4.0.tar.gz - sha256sums = b513f29fad270445156fd034ffa3da8d2ccf9bfcee70dbb9c7c70cbe8e608657 + source = srhtctl-0.5.0.tar.gz::https://git.xenrox.net/~xenrox/srhtctl/archive/0.5.0.tar.gz + source = https://git.xenrox.net/~xenrox/srhtctl/refs/download/0.5.0/srhtctl-0.5.0.tar.gz.sig + validpgpkeys = BBC78A8FF5467A292893AE702698363BB3DBBAEE + sha256sums = be955c97a378b43798d960662dea90eda6daf6c81b420ae2ca7b89207b8a9ec2 + sha256sums = SKIP pkgname = srhtctl - @@ -1,15 +1,25 @@ # Maintainer: Thorben Günther <echo YWRtaW5AeGVucm94Lm5ldAo= | base64 -d> pkgname=srhtctl -pkgver=0.4.0 -pkgrel=3 +pkgver=0.5.0 +pkgrel=1 pkgdesc='CLI for interacting with the sr.ht API' arch=('x86_64') url='https://hub.xenrox.net/~xenrox/srhtctl/' license=('GPL3') -makedepends=('git' 'go') -source=("$pkgname-$pkgver.tar.gz::https://git.xenrox.net/~xenrox/${pkgname}/archive/${pkgver}.tar.gz") -sha256sums=('b513f29fad270445156fd034ffa3da8d2ccf9bfcee70dbb9c7c70cbe8e608657') +makedepends=('go') +source=( + "$pkgname-$pkgver.tar.gz::https://git.xenrox.net/~xenrox/${pkgname}/archive/${pkgver}.tar.gz" + "https://git.xenrox.net/~xenrox/${pkgname}/refs/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig" +) +sha256sums=('be955c97a378b43798d960662dea90eda6daf6c81b420ae2ca7b89207b8a9ec2' + 'SKIP') +validpgpkeys=('BBC78A8FF5467A292893AE702698363BB3DBBAEE') + +check() { + cd "$srcdir/$pkgname-$pkgver" + go test ./... +} build() { cd "$srcdir/$pkgname-$pkgver" @@ -17,8 +27,9 @@ build() { export CGO_CFLAGS="${CFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - make PREFIX=/usr + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + + go build -o srhtctl } package() { @@ -27,5 +38,4 @@ package() { "$pkgdir/usr/bin/srhtctl" completionBASH | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/srhtctl" "$pkgdir/usr/bin/srhtctl" completionZSH | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_srhtctl" - patch --forward --strip=1 --input="$srcdir/$pkgname-$pkgver/assets/srhtctl.patch" --directory="$pkgdir" } |