sourcemod-advertisements
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=sourcemod-advertisements
6
_name=sm-advertisements
7
pkgver=2.1.2
8
pkgrel=1
9
pkgdesc="Advertisements, a SourceMod plugin displaying messages on game servers (in the addons folder of sourcemod)"
10
arch=(any)
11
url="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
14
license=(GPL-3.0-only LicenseRef-SourceMod-exception)
15
depends=(sourcemod)
16
makedepends=(git sourcemod-scripting)
17
source=("git+https://github.com/ErikMinekus/sm-advertisements.git#tag=$pkgver")
18
sha512sums=('0fa6625cf470f8510385707a28d6a162b497c3faf7d51ce4679ac728f827a073905742d58f7bf596603eb16385b6feb6f78ab1d74afc43ad10d29d804696cb05')
19
b2sums=('a305b4cf5b745c5ac65bfec891e94694fc5e5c7e4e3dc7b074ee37eddc0065e4e1a3e1d7c9cfd01b61c3d7a70b9269d0282a71b0b9b2f3982c399fa3569f4a66')
20
21
prepare() {
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
32
build() {
33
cd "$_name/addons/sourcemod/scripting" || exit
34
spcomp64 -iinclude -o../plugins/advertisements.smx advertisements.sp
35
}
36
37
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-11-03 12:04:35 | Low | 1 |