sourcemod-advertisements

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=sourcemod-advertisements
6_name=sm-advertisements
7pkgver=2.1.2
8pkgrel=1
9pkgdesc="Advertisements, a SourceMod plugin displaying messages on game servers (in the addons folder of sourcemod)"
10arch=(any)
11url="https://github.com/ErikMinekus/sm-advertisements"
12# Upstream states no licence; a SourceMod plugin is a derivative work of SourceMod's include files,
13# which SourceMod's licence puts under GPL 3.0 with its exceptions
14license=(GPL-3.0-only LicenseRef-SourceMod-exception)
15depends=(sourcemod)
16makedepends=(git sourcemod-scripting)
17source=("git+https://github.com/ErikMinekus/sm-advertisements.git#tag=$pkgver")
18sha512sums=('0fa6625cf470f8510385707a28d6a162b497c3faf7d51ce4679ac728f827a073905742d58f7bf596603eb16385b6feb6f78ab1d74afc43ad10d29d804696cb05')
19b2sums=('a305b4cf5b745c5ac65bfec891e94694fc5e5c7e4e3dc7b074ee37eddc0065e4e1a3e1d7c9cfd01b61c3d7a70b9269d0282a71b0b9b2f3982c399fa3569f4a66')
20
21prepare() {
22 cd "$_name/addons/sourcemod/scripting" || exit
23 # Without the Updater plugin's updates, which would replace the package's files: a newer version
24 # comes with the package
25 sed -i -e '/^#include <updater>$/d' -e '/^#define UPDATE_URL\t/d' \
26 -e '/^ if (LibraryExists("updater")) {$/,/^ }$/d' \
27 -e '/^ if (StrEqual(name, "updater")) {$/,/^ }$/d' advertisements.sp
28 ! grep -qi updater advertisements.sp || exit
29 rm include/updater.inc
30}
31
32build() {
33 cd "$_name/addons/sourcemod/scripting" || exit
34 spcomp64 -iinclude -o../plugins/advertisements.smx advertisements.sp
35}
36
37package() {
38 # In the addons folder of sourcemod: the plugin and its configuration, as in upstream's package
39 local _src="$srcdir/$_name/addons/sourcemod" _sm="$pkgdir/usr/lib/sourcemod/addons/sourcemod"
40 install -Dm644 "$_src/plugins/advertisements.smx" -t "$_sm/plugins"
41 install -Dm644 "$_src/configs/advertisements.txt" -t "$_sm/configs"
42
43 install -Dm644 /usr/share/licenses/sourcemod-scripting/LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
44}
45

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