From a4e9cf6bc8ba2d8b1858575d05dd85312091bdc5 Mon Sep 17 00:00:00 2001 From: Rafael Baboni Dominiquini Date: Sat, 14 Feb 2026 21:54:36 -0300 Subject: [PATCH] Published: 0.2.0 --- .SRCINFO | 21 ++++++++---------- .gitignore | 5 +++++ .nvchecker.toml | 3 +++ PKGBUILD | 59 ++++++++++++++++++++++++------------------------- 4 files changed, 46 insertions(+), 42 deletions(-) create mode 100644 .gitignore create mode 100644 .nvchecker.toml diff --git a/.SRCINFO b/.SRCINFO index 2540ae5ae140f..391649c5243a3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,15 @@ pkgbase = flux - pkgdesc = Lightweight scripting language for querying databases and working with data - pkgver = 0.149.0 + pkgdesc = Search, monitor, and nuke processes with ease, with system resource tracking + pkgver = 0.2.0 pkgrel = 1 - url = https://github.com/influxdata/flux - arch = i686 - arch = x86_64 - arch = arm64 + url = https://github.com/VG-dev1/flux + arch = any license = MIT - makedepends = git - makedepends = go - makedepends = cargo - makedepends = clang + makedepends = rust + depends = glibc depends = gcc-libs - source = git+https://github.com/influxdata/flux#tag=v0.149.0 - sha512sums = SKIP + provides = flux + source = flux-0.2.0.tar.gz::https://github.com/VG-dev1/flux/archive/refs/tags/v0.2.0.tar.gz + sha256sums = ca01a86c8f0563320162343686f90a8283e284924fbb5ca35fd56188b9a80e0e pkgname = flux diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..61d143428d736 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.nvchecker.toml +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 0000000000000..45b26ba2e90cf --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,3 @@ +[flux] +source = "cratesio" +cratesio = "flux-cli" diff --git a/PKGBUILD b/PKGBUILD index 1cbd753fee30f..834486e8094d0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,41 +1,40 @@ -# Maintainer: Vyacheslav Konovalov <🦀vk@protonmail.com> +# Maintainer: Rafael Dominiquini -pkgname=flux -pkgver=0.149.0 +_cratesio_package='flux-cli' + +pkgname="${_cratesio_package%%-cli}" +pkgver=0.2.0 pkgrel=1 -pkgdesc='Lightweight scripting language for querying databases and working with data' -arch=('i686' 'x86_64' 'arm64') -url='https://github.com/influxdata/flux' +pkgdesc="Search, monitor, and nuke processes with ease, with system resource tracking" + license=('MIT') -depends=('gcc-libs') -makedepends=('git' 'go' 'cargo' 'clang') -source=("git+https://github.com/influxdata/flux#tag=v$pkgver") -sha512sums=('SKIP') +arch=('any') + +_url_cratesio='https://crates.io/crates/flux-cli' +_url_github='https://github.com/VG-dev1/flux' +url="${_url_github}" + +provides=("${pkgname}") + +depends=('glibc' 'gcc-libs') +makedepends=('rust') + +# source=("${pkgname}-${pkgver}.crate::https://crates.io/api/v1/crates/${_cratesio_package}/${pkgver}/download") +source=("${pkgname}-${pkgver}.tar.gz::${_url_github}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('ca01a86c8f0563320162343686f90a8283e284924fbb5ca35fd56188b9a80e0e') build() { - cd flux + cd ${srcdir}/${pkgname}-${pkgver} || exit 1 - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS='-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw' - export PKG_CONFIG=$PWD/pkg-config - - go build -o pkg-config github.com/influxdata/pkg-config - go build ./cmd/flux - - target=$( - eval $(rustc --print cfg | grep target) - echo $target_arch-$target_vendor-$target_os-$target_env - ) - mv libflux/target/$target/release/libflux.so . + RUSTFLAGS="--remap-path-prefix=$(pwd)=/build/" cargo build --release --locked } package() { - cd flux + cd ${srcdir}/${pkgname}-${pkgver} || exit 1 - install -Dm775 libflux.so -t "$pkgdir/usr/lib" - install -Dm775 flux -t "$pkgdir/usr/bin" - install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/flux" + install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + + install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" + + install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }