smb3-foundry-git
LOW
maintainer fbf-prog64
1 votes
scanned 2026-11-01 05:59:34.516406
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: Felipe BF <fprgw32 at gmail dot com>
2
3
_rawname="SMB3-Foundry"
4
_pkgbase="smb3-foundry"
5
pkgname="${_pkgbase}-git"
6
pkgver=1.6.r66.gd907aafd
7
pkgrel=2
8
pkgdesc="A modern Super Mario Bros. 3 level editor (development version)"
9
arch=('x86_64')
10
url="https://github.com/mchlnix/${_rawname}"
11
license=('GPL-3.0-only')
12
provides=(
13
"${_pkgbase}"
14
'smb3-scribe'
15
)
16
conflicts=("${_pkgbase}")
17
depends=(
18
'sh'
19
'python'
20
'python-pytest'
21
'python-hypothesis'
22
'pyside6'
23
'python-qdarkstyle'
24
'python-py65'
25
'glibc'
26
'libgcc'
27
'hicolor-icon-theme'
28
)
29
makedepends=(
30
'git'
31
'rust'
32
'maturin'
33
'python-installer'
34
)
35
36
source=(
37
"git+${url}.git"
38
'smb3-foundry.sh'
39
'smb3-scribe.sh'
40
'smb3-foundry.desktop'
41
'smb3-scribe.desktop'
42
'foundry-icons.tar.gz'
43
'scribe-icons.tar.gz'
44
)
45
46
b2sums=('SKIP'
47
'2032b07037ba80c60d154ac92a380a19ed53cf1b8f312f4a8b896ac3ac6a98eb377d6062f6551830900c4a3fdbd608e75cb1a3d561fdd0c3dc6ef1dd9776fe31'
48
'f3159c38269e17e1222ce219e2b42752f48adb79670073322f63bd1ecff10940154efad759ae04c8fa707c7cc0bf10f0ff2dcb93829545000f71dbc728cb9c17'
49
'7f5033b30e8cf91b6d1652139a450c2aeee4a93a30a5d0f69f93bcc235d941e7b532e0eb84edfb22583af2c7bc1d318565145e8f55dd10a3b076c4330ced7a12'
50
'b93fc5e7953837b8466087c097b7f2fb9e63e714b3da437be53517b57ee519a93d50fca0706ab730c95fbd285982e3e8c9eb7f2f4b739323d04770612ec1850f'
51
'3ecb70bea39dd51848399acab843ad50c4dfb1b5bb3b630e543b777c943e9d07f994224036ba245bafeb3cb4028293e6734901b9300f690fc4d36e10364e250e'
52
'a00917fcd714cac3a064c919bd70404bd90d3dd4399262ff0fd1714b77d5ca2652b6616930f269f2a3f599be20bb50a909773d50f7ee93eaa15a04c95bad0ec2')
53
54
pkgver() {
55
cd "$srcdir/${_rawname}"
56
git describe --long --tags --match "[0-9]*" | sed 's/\([^-]*-g\)/r\1/; s/-/./g; s/_//g'
57
}
58
59
build() {
60
cd "$srcdir/${_rawname}"
61
62
export RUSTUP_TOOLCHAIN=stable
63
64
# Build the Rust extension modules with maturin
65
for crate in r6502 rsmb3parse; do
66
msg2 "Building Rust module: $crate"
67
(
68
cd "rust/$crate"
69
maturin build --release --strip
70
)
71
done
72
}
73
74
package() {
75
cd "$srcdir/${_rawname}"
76
77
install -d "$pkgdir/usr/share/${_pkgbase}"
78
79
# 1. Install the main Python application files
80
for f in \
81
foundry smb3parse scribe data doc \
82
VERSION smb3-foundry.py smb3-scribe.py
83
do
84
cp -r "$f" "$pkgdir/usr/share/${_pkgbase}/"
85
done
86
87
# 2. Install the Rust extension wheels into the Python site-packages
88
for crate in r6502 rsmb3parse; do
89
msg2 "Installing Python wheel for: $crate"
90
python -m installer --destdir="$pkgdir" \
91
"rust/$crate/target/wheels/"*.whl
92
done
93
94
# 3. Install the license
95
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
96
97
cd ..
98
99
# 4. Install the icons
100
for size in 16 22 32 48 64 128 256 512; do
101
local icon_folder="icons/hicolor/${size}x${size}"
102
install -Dm644 "foundry_${size}.png" "${pkgdir}/usr/share/${icon_folder}/apps/smb3-foundry.png"
103
install -Dm644 "scribe_${size}.png" "${pkgdir}/usr/share/${icon_folder}/apps/smb3-scribe.png"
104
done
105
106
cd ..
107
108
# 5. Install launcher scripts in /usr/bin
109
for f in *.sh; do
110
install -Dm755 "$f" "$pkgdir/usr/bin/${f%.*}"
111
done
112
113
# 6. Install the desktop files
114
for f in *.desktop; do
115
install -Dm644 "$f" "${pkgdir}/usr/share/applications/$f"
116
done
117
}
118
119
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 05:59:34 | Low | 1 |