blob: c960a36fa8f6faad87d857b1840ab1d5297927a7 (
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
|
# Maintainer: Sergey Mezentsev <thebits@yandex.ru>
pkgname=datafusion-cli
pkgver=45.0.0
pkgrel=1
pkgdesc="The DataFusion CLI is a command-line interactive SQL utility for executing queries against any supported data files."
url="https://github.com/apache/datafusion"
arch=(x86_64)
license=(APACHE)
options=("!lto") # https://github.com/briansmith/ring/issues/1444
makedepends=(
rustup
cargo
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/apache/arrow-datafusion/archive/tags/$pkgver.tar.gz")
b2sums=('981ac4c22f6999e8a1999358d21dc70cee7e90b0ec9a0864a7c66c023e163aa9d6480e3f1f470bdf612d2305e6b557871b69e6ab12b05f02ccdd738e893a5f4f')
build() {
export CARGO_TARGET_DIR=target
cd "datafusion-tags-$pkgver/datafusion-cli"
rustup override set 1.81
rustup component add rustfmt
cargo build --release --locked
}
# check() {
# cd "datafusion-tags-$pkgver"
# cargo test --release --all-features --frozen
# }
package() {
cd "datafusion-tags-$pkgver/datafusion-cli"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
cd ..
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 {README,CHANGELOG}.md
}
|