salamlang

LOW
maintainer basemax 0 votes scanned 2026-09-24 03:41:46.078749
View on AUR
Why flagged

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

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.

Low AI review 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

1# Maintainer: Seyyed Ali Mohammadiyeh (Max Base) <MaxBaseCode@gmail.com>
2# shellcheck shell=bash disable=SC2034,SC2154,SC2164
3
4pkgname=salamlang
5_pkgname=salam
6pkgver=0.4.3
7pkgrel=1
8pkgdesc="General-purpose systems programming language with a built-in DSL"
9arch=('x86_64' 'aarch64')
10url="https://github.com/SalamLang/Salam"
11license=('GPL-3.0-or-later')
12depends=('zlib' 'zstd' 'libxml2')
13makedepends=('clang' 'llvm' 'lld')
14provides=("salam=${pkgver}")
15conflicts=('salam-bin')
16options=('!strip' '!debug')
17
18# Salam's compiler is written in Salam, so the build needs an existing Salam.
19_seedver=0.4.1
20_rel="${url}/releases/download"
21
22source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
23sha256sums=('dbfa6671002ed2d10289aafb4121a6f60f2a95a73d40ccf12624e6ab9fdff311')
24
25source_x86_64=("salam-seed-${_seedver}-x86_64.tar.gz::${_rel}/v${_seedver}/salam-${_seedver}-linux-x86_64.tar.gz")
26source_aarch64=("salam-seed-${_seedver}-aarch64.tar.gz::${_rel}/v${_seedver}/salam-${_seedver}-linux-aarch64.tar.gz")
27sha256sums_x86_64=('60a479032390b1d941b3fa7fbca3c8267a8fb3160ba6bbf3a4b27c83056a383a')
28sha256sums_aarch64=('cfad9388b531dda26f4ad2afa20fb748a2334a57e008df4bc7fb2a8ef6b3d42d')
29
30_seeddir() {
31 case "$CARCH" in
32 x86_64) echo "salam-linux-x86_64" ;;
33 aarch64) echo "salam-linux-aarch64" ;;
34 esac
35}
36
37build() {
38 cd "${srcdir}/Salam-${pkgver}"
39 sh tools/bash/build-selfhost.sh \
40 --output="${srcdir}/Salam-${pkgver}/salam" \
41 --seed="${srcdir}/$(_seeddir)/salam"
42}
43
44check() {
45 cd "${srcdir}/Salam-${pkgver}"
46 printf 'func main:\n println "salam"\nend\n' > "${srcdir}/hello.salam"
47 SALAM_STD="${srcdir}/Salam-${pkgver}/std" ./salam exec "${srcdir}/hello.salam" | grep -qx salam
48}
49
50package() {
51 cd "${srcdir}/Salam-${pkgver}"
52
53 install -Dm755 salam "${pkgdir}/usr/lib/${_pkgname}/salam"
54
55 install -dm755 "${pkgdir}/usr/lib/${_pkgname}/std"
56 cp -a std/. "${pkgdir}/usr/lib/${_pkgname}/std/"
57 find "${pkgdir}/usr/lib/${_pkgname}/std" -type d -exec chmod 755 {} +
58 find "${pkgdir}/usr/lib/${_pkgname}/std" -type f -exec chmod 644 {} +
59
60 install -dm755 "${pkgdir}/usr/bin"
61 cat > "${pkgdir}/usr/bin/${_pkgname}" <<'EOF'
62#!/bin/sh
63SALAM_HOME=/usr/lib/salam
64export SALAM_STD="${SALAM_STD:-$SALAM_HOME/std}"
65exec "$SALAM_HOME/salam" "$@"
66EOF
67 chmod 755 "${pkgdir}/usr/bin/${_pkgname}"
68
69 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
70 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
71}
72

Scan history

Scanned at (UTC)SeverityRules
2026-09-24 03:41:46 Low 2

Report a package

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

0 / 4000
Your suggestion