ambuild

LOW
maintainer ChrisTX 0 votes scanned 2026-11-03 12:04:35.126831
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: Christian Pfeiffer <cpfeiffer at rev-crew dot info>
2# shellcheck disable=SC2034,SC2154
3# shellcheck shell=bash
4
5pkgname=ambuild
6# The last tag, 2.2 (2020), has API 2.2, but SourcePawn needs 2.2.3 or later: the package is built
7# from the latest commit, versioned like git describe: <tag>.r<commits since>.g<short commit>.
8pkgver=2.2.r82.g01212cb
9_commit=01212cb57c96561f664b6dfb2ee10e66de6f81e4
10pkgrel=1
11# Where ./aur-packages commits reads _commit from: the commit pkgver names
12_commit_lookup() {
13 curl -fsSL "https://api.github.com/repos/alliedmodders/ambuild/commits/${pkgver##*.g}" | jq -r .sha
14}
15pkgdesc="AlliedModders' build system, used by SourceMod, SourcePawn and Metamod:Source"
16arch=(any)
17url="https://github.com/alliedmodders/ambuild"
18license=(BSD-3-Clause)
19depends=(python)
20makedepends=(python-build python-installer python-setuptools python-wheel)
21optdepends=(
22 'gcc: C/C++ compiler'
23 'clang: C/C++ compiler'
24)
25conflicts=(ambuild-git)
26source=("$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
27 ldflags.patch)
28sha512sums=('cf2872941e93286f75187c07386f30f86bc4fa39366abbfb1461292eebf16548267523812a3bd381889789fb56638ad624c91cab3f0287fb75f39aaeab95403b'
29 '6ed24fbd565c0e26cab4beaa05b40a1bb425d6401f4469c935cd8cf2b6d4ffaca959f42fd79cb5042064e1329e0c57a182bcc06220758c664802f171aa692627')
30b2sums=('8ef4435967f40711aa3486054eb24497ef0779f84e4d8b92a4889f5f35bff58c5d99936e5d581a7900459caf9a7b8587dfe056207f8f5106fc29f357bac08f38'
31 'b2b4fcd0944ff31097c101463dab9c2aa8c72501a8e11222efba78282cd5f7d191301b8cbf46c210c5ca6c4eddaa8c1278d3f0f6deebbfd7ed228ea835fbe3fe')
32
33prepare() {
34 cd "$pkgname-$_commit" || exit
35
36 # The compilers take CFLAGS and CXXFLAGS from the environment, the linker LDFLAGS too, so that
37 # makepkg's linker flags (RELRO, …) apply
38 patch -Np1 -i "$srcdir/ldflags.patch"
39}
40
41build() {
42 cd "$pkgname-$_commit" || exit
43
44 python -m build --wheel --no-isolation
45}
46
47check() {
48 cd "$pkgname-$_commit" || exit
49
50 python -m unittest discover ambuild2 "*_test.py"
51}
52
53package() {
54 cd "$pkgname-$_commit" || exit
55
56 python -m installer --destdir "$pkgdir" dist/*.whl
57
58 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
59 install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
60}
61

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 12:04:35 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