ooniprobe-cli: auto updated to 3.17.1-1

This commit is contained in:
Lilac 2023-05-15 09:14:00 +00:00
parent 3d68306d4c
commit b7a337b75a

View file

@ -0,0 +1,35 @@
# Maintainer: bgme <i@bgme.me>
# Contributor: ml <>
_pkgname=probe-cli
pkgname=ooniprobe-cli
pkgver=3.17.1
_pkgver=3.17.1
pkgrel=1
pkgdesc='Next generation OONI Probe CLI'
arch=('x86_64')
url='https://ooni.org/'
license=('GPL3')
depends=('glibc')
makedepends=('go1.19')
source=("${_pkgname}-${_pkgver}.tar.gz::https://github.com/ooni/${_pkgname}/archive/refs/tags/v${_pkgver}.tar.gz")
sha256sums=('f8d89803c34f8f8112ed8aee2b462058fa20782e5b927f619cbf09805ec6f56d')
sha512sums=('62f2d8f91fcc04608534de8feccd1b3f23be0b858d8f56ae07fb7b08c5ab983d929fa06dc1fdd0fe72370e473973f8347d5b3b7c252bfa7eb376b4c81785376a')
build() {
cd "${_pkgname}-${_pkgver}"
export CGO_ENABLED=1
export CGO_LDFLAGS="$LDFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export GOFLAGS='-ldflags=-linkmode=external -buildmode=pie -trimpath -modcacherw'
go1.19 build ./cmd/ooniprobe
}
package() {
cd "${_pkgname}-${pkgver}"
install -Dm755 ooniprobe -t "$pkgdir/usr/bin"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 Readme.md -t "$pkgdir/usr/share/doc/$pkgname"
}