From b7a337b75a2af84979ccd48d41cac4fe47126e45 Mon Sep 17 00:00:00 2001 From: Lilac Date: Mon, 15 May 2023 09:14:00 +0000 Subject: [PATCH] ooniprobe-cli: auto updated to 3.17.1-1 --- repo/ooniprobe-cli/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 repo/ooniprobe-cli/PKGBUILD diff --git a/repo/ooniprobe-cli/PKGBUILD b/repo/ooniprobe-cli/PKGBUILD new file mode 100644 index 0000000..8c955f6 --- /dev/null +++ b/repo/ooniprobe-cli/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: bgme +# 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" +}