blob: 98990d8010a831501fc4809c888843d115778af5 (
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
|
# Maintainer: Xeonacid <h.dwwwwww@gmail.com>
pkgname=aptos
pkgver=9.2.0
pkgrel=1
pkgdesc='Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.'
url='https://aptos.dev'
arch=(x86_64)
license=(Apache-2.0)
depends=(gcc-libs glibc libelf libssl.so libcrypto.so systemd-libs)
makedepends=(git cargo clang)
source=(git+https://github.com/aptos-labs/aptos-core#tag=aptos-cli-v$pkgver)
sha512sums=('18809adec23e38ef8eb9994c9e90afe7d8ec1e89ad1f426c2d798984617f8ead46d4b4b55f23eb087315f79d31e9cee642683d0f137d840df47b42dd489956da')
# undefined reference to `git_repository_open'
options=(!lto)
prepare() {
cd aptos-core
export RUSTUP_TOOLCHAIN=stable
# Fix `time` compile error
cargo update -p time
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd aptos-core
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
# https://github.com/aptos-labs/aptos-core/issues/10293
export RUSTFLAGS="--cfg tokio_unstable"
# Fix rocksdb
export CXXFLAGS="$CXXFLAGS -include cstdint"
cargo build --frozen --release -p aptos
}
check() {
cd aptos-core
export RUSTUP_TOOLCHAIN=stable
# test genesis::tests::test_genesis_e2e_flow ... FAILED
cargo test --frozen -p aptos || true
}
package() {
cd aptos-core
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}
|