karamel-git
The PKGBUILD uses opam to install OCaml dependencies and build the project from its official Git repositories; this is a normal build process for OCaml software, not an external install of untrusted code.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The PKGBUILD uses opam to install OCaml dependencies and build the project from its official Git repositories; this is a normal build process for OCaml software, not an external install of untrusted code.
1 higher static finding superseded - not the current verdict (shown for transparency)
alt_pkg_manager_install
A non-pip/npm package manager (pipx, uv, poetry, cargo install, go install, gem, conda…) fetches and builds an external package at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:41
CHECK_IF_PREINSTALLED=false opam install --yes --no-depexts conf-python-2-7 ppx_deriving_yojson zarith pprint "menhir>=20161115" sedlex process fix "wasm>=2.0.0" visitors ctypes-foreign ctypes
PKGBUILD
1 offending line(s) highlighted# Maintainer: crave <crave@infinity>
pkgname=karamel-git
pkgver=fstar.v2022.11.19.r846.g71facac.karamel.v1.0.0.r421.gbd359d8
pkgrel=1
pkgdesc="a tool for extracting low-level F* programs to readable C code"
arch=('i686' 'x86_64')
url='https://github.com/FStarLang/karamel'
license=('Apache-2.0')
options=('!strip' '!makeflags' 'staticlibs')
depends=('python2' 'opam' 'which')
conflicts=('fstar')
source=('git+https://github.com/FStarLang/FStar.git'
'git+https://github.com/FStarLang/karamel.git')
sha256sums=('SKIP' 'SKIP')
pkgver() {
(cd FStar
echo -n 'fstar.'
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | tr -d '\n')
(cd karamel
echo -n '.karamel.'
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
}
OPAM_VER=4.11.0
build() {
cd "$srcdir"
export FSTAR_HOME="$(realpath FStar)"
export PATH="$FSTAR_HOME/bin:$PATH"
if ! [ -d ~/.opam ]; then
# I know you probably shouldn't do this in a PKGBUILD
# But I don't care about ocaml, I just want to use this software
opam init --shell-setup
opam switch create "$OPAM_VER"
opam switch "$OPAM_VER"
fi
(eval $(opam env)
CHECK_IF_PREINSTALLED=false opam install --yes --no-depexts conf-python-2-7 ppx_deriving_yojson zarith pprint "menhir>=20161115" sedlex process fix "wasm>=2.0.0" visitors ctypes-foreign ctypes
(cd FStar
opam install --yes --deps-only .
make -j$(nproc))
(cd karamel
make -j$(nproc))) || echo "If the build failed because of some ocaml messages try deleting ~/.opam, and re-run"
}
package() {
eval $(opam env)
cd "$srcdir"
export PREFIX="$pkgdir/opt/fstar"
mkdir -p "$PREFIX"
#(cd FStar; make -j$(nproc) install; cd ulib; export INSTALL_EXEC="$(which install)"; ./install-ulib.sh)
cp -r FStar/* $PREFIX
export FSTAR_HOME="$PREFIX"
export PREFIX="$pkgdir/opt/karamel"
#(cd karamel; make -j$(nproc) install)
mkdir -p "$PREFIX"
cp -r karamel/* $PREFIX
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-18 00:17:11 | Low | 2 |
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |