mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
PKGBUILD for flux 0.106.0
This commit is contained in:
commit
83a9f5c2af
2 changed files with 60 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
pkgbase = flux
|
||||
pkgdesc = Lightweight scripting language for querying databases (like InfluxDB) and working with data
|
||||
pkgver = 0.106.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/influxdata/flux
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
arch = arm64
|
||||
license = MIT
|
||||
makedepends = git
|
||||
makedepends = go
|
||||
makedepends = cargo
|
||||
makedepends = clang
|
||||
depends = gcc-libs
|
||||
source = git+https://github.com/influxdata/flux#tag=v0.106.0
|
||||
sha512sums = SKIP
|
||||
|
||||
pkgname = flux
|
||||
|
||||
41
PKGBUILD
Normal file
41
PKGBUILD
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: Vyacheslav Konovalov <crabvk@protonmail.com>
|
||||
|
||||
pkgname=flux
|
||||
pkgver=0.106.0
|
||||
pkgrel=1
|
||||
pkgdesc='Lightweight scripting language for querying databases (like InfluxDB) and working with data'
|
||||
arch=(i686 x86_64 arm64)
|
||||
url='https://github.com/influxdata/flux'
|
||||
license=(MIT)
|
||||
depends=(gcc-libs)
|
||||
makedepends=(git go cargo clang)
|
||||
source=("git+https://github.com/influxdata/flux#tag=v$pkgver")
|
||||
sha512sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd flux
|
||||
|
||||
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,fluxdoc} .
|
||||
}
|
||||
|
||||
package() {
|
||||
cd flux
|
||||
|
||||
install -Dm775 libflux.so -t "$pkgdir/usr/lib"
|
||||
install -Dm775 flux fluxdoc -t "$pkgdir/usr/bin"
|
||||
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/flux"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue