blob: f5bc58c3bd07559c6388ac53ce5e4f8e546fcbcd (
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
|
pkgname=sui
pkgver=1.32.2
pkgrel=1
pkgdesc='Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language.'
url='https://sui.io'
arch=(x86_64)
license=(Apache-2.0)
depends=(rust openssl libldap krb5 e2fsprogs keyutils libsasl postgresql-libs)
makedepends=(git curl cargo cmake clang)
source=(git+https://github.com/MystenLabs/$pkgname#tag=mainnet-v$pkgver)
sha512sums=('267b3071dee70ae9546be8fe88fb005a90589e9b79ea101030fcdf7e6a9f905b2160f433f6af1b3e59e4c356c091c92185442ad0b4e03330258de72d31e9c2ff')
# https://github.com/briansmith/ring/issues/1444
options=(!lto)
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
}
check() {
cd $pkgname
export RUSTUP_TOOLCHAIN=stable
# ---- storage::store_tests::read_and_contain_blocks::test_store_1_TestStore__new_rocksdb_store__ stdout ----
# thread 'storage::store_tests::read_and_contain_blocks::test_store_1_TestStore__new_rocksdb_store__' panicked at crates/typed-store/src/metrics.rs:270:14:
# called `Result::unwrap()` on an `Err` value: AlreadyReg
# ---- storage::store_tests::read_and_scan_commits::test_store_1_TestStore__new_rocksdb_store__ stdout ----
# thread 'storage::store_tests::read_and_scan_commits::test_store_1_TestStore__new_rocksdb_store__' panicked at crates/typed-store/src/metrics.rs:270:14:
# called `Result::unwrap()` on an `Err` value: AlreadyReg
cargo test --frozen --all-features --workspace || true
}
package() {
cd $pkgname
binarys=(sui sui-bridge sui-data-ingestion sui-faucet sui-node sui-test-validator sui-tool)
for binary in "${binarys[@]}"; do
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$binary"
done
}
|