foundry-rs

LOW
maintainer nojo 0 votes scanned 2026-11-05 20:10:15.251681
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Nikolay Bryskin <nikicat@users.noreply.github.com>
2# Ethereum's Foundry, built from a pinned source release. Arch's own `foundry`
3# (extra) is GNOME's, hence the -rs name.
4pkgname=foundry-rs
5pkgver=1.9.0
6pkgrel=1
7_commit=6056c5845d34205a83cf7108042adb137325c9df
8pkgdesc='Ethereum development toolkit: forge, cast, anvil and chisel'
9arch=(x86_64 aarch64)
10url='https://github.com/foundry-rs/foundry'
11license=(MIT Apache-2.0)
12depends=(glibc libgcc libusb)
13makedepends=(cargo cmake)
14conflicts=(foundry-bin foundry-git)
15# makepkg's -flto turns aws-lc's C objects into GCC bitcode, which rust-lld can't link
16options=(!lto)
17source=("foundry-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
18sha256sums=('06e1a9f00435384126c20638dd50c7df6b50eccbc09ff2cf0deb502ad10d1228')
19
20_bins=(forge cast anvil chisel)
21
22prepare() {
23 cd foundry-$pkgver
24 export RUSTUP_TOOLCHAIN=stable
25 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
26}
27
28build() {
29 cd foundry-$pkgver
30 export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
31 # what upstream's release.yml sets; the tarball has no .git to read them from
32 export TAG_NAME=v$pkgver VERGEN_GIT_SHA=$_commit
33 # cc-rs appends makepkg's -O2 after jitterentropy's required -O0; cmake keeps it last
34 export AWS_LC_SYS_CMAKE_BUILDER=1
35 # upstream's release features, minus PGO; jemalloc is x86_64-only upstream too
36 local features=aws-kms,gcp-kms,turnkey,cli,asm-keccak,js-tracer,base,monad,optimism
37 [[ $CARCH == x86_64 ]] && features+=,jemalloc
38 cargo build --frozen --release --no-default-features --features "$features" \
39 "${_bins[@]/#/--bin=}"
40}
41
42package() {
43 cd foundry-$pkgver
44 local bin
45 for bin in "${_bins[@]}"; do
46 install -Dm755 target/release/$bin -t "$pkgdir/usr/bin"
47 done
48 install -Dm644 LICENSE-MIT LICENSE-APACHE -t "$pkgdir/usr/share/licenses/$pkgname"
49}
50

Scan history

Scanned at (UTC)SeverityRules
2026-11-05 20:10:15 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion