foundry-rs
LOW
maintainer nojo
0 votes
scanned 2026-11-05 20:10:15.251681
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.
4
pkgname=foundry-rs
5
pkgver=1.9.0
6
pkgrel=1
7
_commit=6056c5845d34205a83cf7108042adb137325c9df
8
pkgdesc='Ethereum development toolkit: forge, cast, anvil and chisel'
9
arch=(x86_64 aarch64)
10
url='https://github.com/foundry-rs/foundry'
11
license=(MIT Apache-2.0)
12
depends=(glibc libgcc libusb)
13
makedepends=(cargo cmake)
14
conflicts=(foundry-bin foundry-git)
15
# makepkg's -flto turns aws-lc's C objects into GCC bitcode, which rust-lld can't link
16
options=(!lto)
17
source=("foundry-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
18
sha256sums=('06e1a9f00435384126c20638dd50c7df6b50eccbc09ff2cf0deb502ad10d1228')
19
20
_bins=(forge cast anvil chisel)
21
22
prepare() {
23
cd foundry-$pkgver
24
export RUSTUP_TOOLCHAIN=stable
25
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
26
}
27
28
build() {
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
42
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-11-05 20:10:15 | Low | 1 |