ambuild
LOW
maintainer ChrisTX
0 votes
scanned 2026-11-03 12:04:35.126831
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
5
pkgname=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>.
8
pkgver=2.2.r82.g01212cb
9
_commit=01212cb57c96561f664b6dfb2ee10e66de6f81e4
10
pkgrel=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
}
15
pkgdesc="AlliedModders' build system, used by SourceMod, SourcePawn and Metamod:Source"
16
arch=(any)
17
url="https://github.com/alliedmodders/ambuild"
18
license=(BSD-3-Clause)
19
depends=(python)
20
makedepends=(python-build python-installer python-setuptools python-wheel)
21
optdepends=(
22
'gcc: C/C++ compiler'
23
'clang: C/C++ compiler'
24
)
25
conflicts=(ambuild-git)
26
source=("$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
27
ldflags.patch)
28
sha512sums=('cf2872941e93286f75187c07386f30f86bc4fa39366abbfb1461292eebf16548267523812a3bd381889789fb56638ad624c91cab3f0287fb75f39aaeab95403b'
29
'6ed24fbd565c0e26cab4beaa05b40a1bb425d6401f4469c935cd8cf2b6d4ffaca959f42fd79cb5042064e1329e0c57a182bcc06220758c664802f171aa692627')
30
b2sums=('8ef4435967f40711aa3486054eb24497ef0779f84e4d8b92a4889f5f35bff58c5d99936e5d581a7900459caf9a7b8587dfe056207f8f5106fc29f357bac08f38'
31
'b2b4fcd0944ff31097c101463dab9c2aa8c72501a8e11222efba78282cd5f7d191301b8cbf46c210c5ca6c4eddaa8c1278d3f0f6deebbfd7ed228ea835fbe3fe')
32
33
prepare() {
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
41
build() {
42
cd "$pkgname-$_commit" || exit
43
44
python -m build --wheel --no-isolation
45
}
46
47
check() {
48
cd "$pkgname-$_commit" || exit
49
50
python -m unittest discover ambuild2 "*_test.py"
51
}
52
53
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-11-03 12:04:35 | Low | 1 |