counter-strike-2d
maintainer lapsus
· 50 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads the game binary and assets from the project's official site (unrealsoftware.de) and an additional library archive from GitHub; both are legitimate sources for this software, and no malicious or obfuscated code execution is present.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads the game binary and assets from the project's official site (unrealsoftware.de) and an additional library archive from GitHub; both are legitimate sources for this software, and no malicious or obfuscated code execution is present.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Yakov Till <yakov.till@gmail.com>
2
# Contributor: HoleHolo <hola0_o@qq.com>
3
# Contributor: Marcin (CTRL) Wieczorek <marcin@marcin.co>
4
# Contributor: carstene1ns <url/mail: arch carsten-teibes de>
5
# Contributor: josephgbr <rafael.f.f1@gmail.com>
6
# Contributor: Josef Lusticky <evramp@gmail.com>
7
# Contributor: Jorge Barroso <jorge.barroso.11 at gmail dot com>
8
# Contributor: Moses Miller <Majora320@gmail.com>
9
10
pkgname=counter-strike-2d
11
pkgver=1.0.1.6
12
_ver=${pkgver//./}
13
pkgrel=3
14
pkgdesc="More than just a freeware clone of the well known game Counter-Strike"
15
arch=('i686' 'x86_64')
16
url="https://www.unrealsoftware.de"
17
license=('custom')
18
install=cs2d.install
19
if [ "$CARCH" == "x86_64" ]; then
20
depends=('lib32-libx11' 'lib32-libxxf86vm' 'lib32-libglvnd' 'lib32-freetype2' 'lib32-glibc' 'lib32-gcc-libs' 'lib32-libxcb' 'lib32-libxext' 'lib32-zlib' 'lib32-bzip2' 'lib32-libpng' 'lib32-harfbuzz' 'lib32-brotli' 'lib32-libxau' 'lib32-libxdmcp' 'lib32-glib2' 'lib32-pcre2')
21
optdepends=('lib32-nvidia-utils: video acceleration for NVIDIA GPUs'
22
'lib32-mesa: video acceleration'
23
'lib32-openal: audio output'
24
'lib32-pipewire: audio output')
25
elif [ "$CARCH" == "i686" ]; then
26
optdepends=('ati-dri: video acceleration'
27
'intel-dri: video acceleration'
28
'nouveau-dri: video acceleration')
29
fi
30
31
makedepends=('curl')
32
backup=(opt/cs2d/sys/autobuy.cfg opt/cs2d/sys/autoexec.cfg
33
opt/cs2d/sys/config.cfg opt/cs2d/sys/controls.cfg
34
opt/cs2d/sys/editor.cfg opt/cs2d/sys/filters.cfg
35
opt/cs2d/sys/mapcycle.cfg opt/cs2d/sys/mods.cfg
36
opt/cs2d/sys/more.cfg opt/cs2d/sys/server.cfg
37
opt/cs2d/sys/weapons.cfg opt/cs2d/sys/weapons_recoil.cfg
38
opt/cs2d/sys/favorites.lst opt/cs2d/sys/bans.lst
39
opt/cs2d/sys/serverinfo.txt opt/cs2d/sys/servertransfer.lst
40
opt/cs2d/sys/usgn_upw opt/cs2d/sys/core/dls.cache)
41
sha512sums=('46a6210983ecca33cd0a406c7f5301a310f2d436601474e87e994f77ff7d16b0c4b1f5af0ee5cf903f79dbb52486f8894db984a13ab84096e3d92b3cd680c7ff'
42
'265251cd6ba0030ab7dfda738b5f80b83bf15ffa1781a580704e89a24e6f76aed88441cc05dbe380ebed6f60e0699f8ec4d968c391dab7380a16c550180b991f'
43
'0c7c91ad4050543635e56ce0ecd9b55e5dc917c87655c69e0dc7e4252655223b7346106f54f2a550e09952cb0ec8afaedfab8dd3b18324b545485ba4fd4b07a4'
44
'318e12d0be3a2cc48c70e34688d861a89db811c960a76439730c420b159d0a99718403806cfc546bf243627e91ad6f34a65c97ef77e3d9592b5baaaed24e34c2')
45
_url="https://www.unrealsoftware.de/get.php?get"
46
47
grabcid() {
48
local file=cs2d_${_ver}_linux.zip
49
echo "$(curl -Ss "$_url=${file}&p=1" | sed -n 's/.*cid=\([0-9]\+\).*/\1/p' | head -n 1)"
50
}
51
52
_cid=$(grabcid) # this will hide the cmd line above from AUR interface
53
source=(cs2d_${_ver}_linux.zip::"${_url}=cs2d_${_ver}_linux.zip&p=1&cid=${_cid}"
54
"cs2d.desktop"
55
"cs2d.png"
56
ubuntu_libs.zip::"https://github.com/Lyrecoul/cs2d_aur_package_host/raw/refs/heads/master/ubuntu_libs.zip")
57
options=(emptydirs)
58
59
package() {
60
# create folders
61
install -d "$pkgdir"/{opt/cs2d,usr/{share/{doc,licenses}/$pkgname,bin}}
62
63
# data
64
cp -R bots gfx help logos maps mods screens sfx sys "$pkgdir"/opt/cs2d
65
66
# executable
67
install CS2D lib* "$pkgdir"/opt/cs2d
68
chmod +x "$pkgdir"/opt/cs2d/CS2D
69
70
71
# desktop launcher
72
install -Dm644 cs2d.png "$pkgdir"/usr/share/pixmaps/cs2d.png
73
install -Dm644 cs2d.desktop "$pkgdir"/usr/share/applications/cs2d.desktop
74
75
# license
76
sed -n 93,117p Readme.txt > "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
77
78
# doc
79
install -m644 *.txt "$pkgdir"/usr/share/doc/$pkgname
80
81
# custom
82
chmod g+w -R "$pkgdir"/opt/cs2d/{maps,mods,gfx,sfx,sys}
83
chgrp games -R "$pkgdir"/opt/cs2d/{maps,mods,gfx,sfx,sys}
84
85
# allow saving u.s.g.n. password
86
touch "$pkgdir"/opt/cs2d/sys/usgn_upw
87
chmod g+w "$pkgdir"/opt/cs2d/sys/usgn_upw
88
chgrp games "$pkgdir"/opt/cs2d/sys/usgn_upw
89
}
90
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |