blob: ac5a0567fb99d19ae835382bc7c7eac970ee72ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Lars Francke <lars.francke@stackable.tech>
_pkgname=stackablectl
pkgname="${_pkgname}-git"
pkgver=stackablectl.24.11.1.r0.g55e8087
pkgrel=1
pkgdesc="Command line tool to interact with a Stackable Data Platform"
arch=('x86_64')
url="https://github.com/stackabletech/stackable-cockpit/"
license=('Apache-2.0')
depends=('gcc-libs' 'glibc')
makedepends=('go' 'cargo' 'git')
# Needed due to https://github.com/briansmith/ring/issues/1444 & https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/20
options=(!lto)
source=("$pkgname::git+https://github.com/stackabletech/stackable-cockpit.git")
b2sums=('SKIP')
provides=(${_pkgname})
conflicts=(${_pkgname} ${_pkgname}-bin)
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features -p stackablectl
}
check() {
cd "$pkgname"
cargo test --frozen --all-features -p stackablectl
}
package() {
cd "$pkgname"
install -vDm755 -t "$pkgdir/usr/bin" target/release/stackablectl
}
|