salamlang
The package builds from source hosted on GitHub and uses a prebuilt seed compiler from the project's own release assets, which is necessary for bootstrapping; all sources are checksummed and the seed is from the same project, posing low risk.
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from source hosted on GitHub and uses a prebuilt seed compiler from the project's own release assets, which is necessary for bootstrapping; all sources are checksummed and the seed is from the same project, posing low risk.
PKGBUILD
# Maintainer: Seyyed Ali Mohammadiyeh (Max Base) <MaxBaseCode@gmail.com>
# shellcheck shell=bash disable=SC2034,SC2154,SC2164
pkgname=salamlang
_pkgname=salam
pkgver=0.4.3
pkgrel=1
pkgdesc="General-purpose systems programming language with a built-in DSL"
arch=('x86_64' 'aarch64')
url="https://github.com/SalamLang/Salam"
license=('GPL-3.0-or-later')
depends=('zlib' 'zstd' 'libxml2')
makedepends=('clang' 'llvm' 'lld')
provides=("salam=${pkgver}")
conflicts=('salam-bin')
options=('!strip' '!debug')
# Salam's compiler is written in Salam, so the build needs an existing Salam.
_seedver=0.4.1
_rel="${url}/releases/download"
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('dbfa6671002ed2d10289aafb4121a6f60f2a95a73d40ccf12624e6ab9fdff311')
source_x86_64=("salam-seed-${_seedver}-x86_64.tar.gz::${_rel}/v${_seedver}/salam-${_seedver}-linux-x86_64.tar.gz")
source_aarch64=("salam-seed-${_seedver}-aarch64.tar.gz::${_rel}/v${_seedver}/salam-${_seedver}-linux-aarch64.tar.gz")
sha256sums_x86_64=('60a479032390b1d941b3fa7fbca3c8267a8fb3160ba6bbf3a4b27c83056a383a')
sha256sums_aarch64=('cfad9388b531dda26f4ad2afa20fb748a2334a57e008df4bc7fb2a8ef6b3d42d')
_seeddir() {
case "$CARCH" in
x86_64) echo "salam-linux-x86_64" ;;
aarch64) echo "salam-linux-aarch64" ;;
esac
}
build() {
cd "${srcdir}/Salam-${pkgver}"
sh tools/bash/build-selfhost.sh \
--output="${srcdir}/Salam-${pkgver}/salam" \
--seed="${srcdir}/$(_seeddir)/salam"
}
check() {
cd "${srcdir}/Salam-${pkgver}"
printf 'func main:\n println "salam"\nend\n' > "${srcdir}/hello.salam"
SALAM_STD="${srcdir}/Salam-${pkgver}/std" ./salam exec "${srcdir}/hello.salam" | grep -qx salam
}
package() {
cd "${srcdir}/Salam-${pkgver}"
install -Dm755 salam "${pkgdir}/usr/lib/${_pkgname}/salam"
install -dm755 "${pkgdir}/usr/lib/${_pkgname}/std"
cp -a std/. "${pkgdir}/usr/lib/${_pkgname}/std/"
find "${pkgdir}/usr/lib/${_pkgname}/std" -type d -exec chmod 755 {} +
find "${pkgdir}/usr/lib/${_pkgname}/std" -type f -exec chmod 644 {} +
install -dm755 "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/${_pkgname}" <<'EOF'
#!/bin/sh
SALAM_HOME=/usr/lib/salam
export SALAM_STD="${SALAM_STD:-$SALAM_HOME/std}"
exec "$SALAM_HOME/salam" "$@"
EOF
chmod 755 "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-24 03:41:46 | Low | 2 |