tome4
MEDIUM
maintainer heavysink
75 votes
scanned 2026-11-04 06:06:05.494099
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
Medium
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:14
source=("http://te4.org/dl/t-engine/t-engine4-src-${pkgver}.tar.bz2"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Harms <thotro at lyse dot net>
2
# Contributor Pascal Grossé <pascal.grosse@gmail.com>
3
4
pkgname=tome4
5
pkgver=1.7.6
6
pkgrel=3
7
pkgdesc="An open-source, single-player, role-playing roguelike game set in the world of Eyal."
8
arch=('i686' 'x86_64')
9
url="http://tome.te4.org/"
10
license=('custom' 'GPL3')
11
depends=('glu' 'openal' 'libvorbis' 'sdl2_ttf' 'sdl2_image' )
12
makedepends=('premake' 'zip' 'unzip' 'glew')
13
options=(!makeflags emptydirs)
14
source=("http://te4.org/dl/t-engine/t-engine4-src-${pkgver}.tar.bz2"
15
aur-${pkgname}.patch
16
compiler-compat.patch
17
tome4
18
tome4.desktop)
19
conflicts=('tome4-beta' 'tome4-git' 'tome4-nomusic')
20
sha256sums=('989dea00803f8cdcade024f4647d480bb1ac0d437c254292c07549c272a4680c'
21
'8e1821d1fe4bd2b48115179a83d71eaefa8b6bda70de77ca75d122d5d3053410'
22
'e260ff219414a61180023bdbbb15ea08fcb4046c25deac6a580b775f132465f9'
23
'3a1e4901337f91697bcfaf095f488c447c27ccc2484a543e31f024d5aefb61a0'
24
'80e663d9eb2d41c6d9c0a6b4b5b52eb33b0872c3412a617530777fd137c0baa1')
25
26
###############################################################################
27
# 1. Patch the game.
28
###############################################################################
29
prepare() {
30
cd "$srcdir"/t-engine4-src-${pkgver}
31
cp premake4.lua premake5.lua
32
patch -p1 < "${srcdir}/aur-${pkgname}.patch"
33
patch -p1 < "${srcdir}/compiler-compat.patch"
34
# Bundled zlib is built without running its configure script.
35
sed -i 's/^#ifdef HAVE_UNISTD_H/#if 1/' src/zlib/zconf.h
36
}
37
38
###############################################################################
39
# 2. Build the game engine from source.
40
###############################################################################
41
build() {
42
cd t-engine4-src-${pkgver}
43
premake5 gmake
44
# The engine defines its own bool type, which conflicts with C23.
45
CFLAGS="$CFLAGS -std=gnu17" make config=release
46
}
47
48
###############################################################################
49
# 3. Create the package. Copy all that shall be installed into the package dir.
50
###############################################################################
51
package() {
52
# Extract and install the icon.
53
unzip -oj -qq "${srcdir}/t-engine4-src-${pkgver}/game/engines/te4-${pkgver}.teae" \
54
"data/gfx/te4-icon.png" -d "${srcdir}"
55
install -Dm644 "${srcdir}/te4-icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
56
57
# Install the documents.
58
install -Dm644 "${srcdir}/t-engine4-src-${pkgver}/CONTRIBUTING" "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING"
59
install -Dm644 "${srcdir}/t-engine4-src-${pkgver}/CREDITS" "${pkgdir}/usr/share/doc/${pkgname}/CREDITS"
60
61
# Install the custom license into standard location.
62
install -Dm644 "${srcdir}/t-engine4-src-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
63
install -Dm644 "${srcdir}/t-engine4-src-${pkgver}/COPYING-MEDIA" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING-MEDIA"
64
65
# Install the game executable, and the launcher.
66
install -Dm755 "${srcdir}/t-engine4-src-${pkgver}/t-engine" "${pkgdir}/opt/${pkgname}/t-engine"
67
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
68
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
69
70
# Install the game data.
71
cp -r "${srcdir}/t-engine4-src-${pkgver}/bootstrap" "${pkgdir}/opt/${pkgname}/"
72
cp -r "${srcdir}/t-engine4-src-${pkgver}/game" "${pkgdir}/opt/${pkgname}/"
73
}
74
Changes since previous scan
--- PKGBUILD @ 2026-06-19 23:51+++ PKGBUILD @ 2026-11-04 06:06@@ -3,7 +3,7 @@ pkgname=tome4 pkgver=1.7.6-pkgrel=1+pkgrel=3 pkgdesc="An open-source, single-player, role-playing roguelike game set in the world of Eyal." arch=('i686' 'x86_64') url="http://tome.te4.org/"@@ -13,11 +13,13 @@ options=(!makeflags emptydirs) source=("http://te4.org/dl/t-engine/t-engine4-src-${pkgver}.tar.bz2" aur-${pkgname}.patch+ compiler-compat.patch tome4 tome4.desktop) conflicts=('tome4-beta' 'tome4-git' 'tome4-nomusic') sha256sums=('989dea00803f8cdcade024f4647d480bb1ac0d437c254292c07549c272a4680c' '8e1821d1fe4bd2b48115179a83d71eaefa8b6bda70de77ca75d122d5d3053410'+ 'e260ff219414a61180023bdbbb15ea08fcb4046c25deac6a580b775f132465f9' '3a1e4901337f91697bcfaf095f488c447c27ccc2484a543e31f024d5aefb61a0' '80e663d9eb2d41c6d9c0a6b4b5b52eb33b0872c3412a617530777fd137c0baa1') @@ -28,6 +30,9 @@ cd "$srcdir"/t-engine4-src-${pkgver} cp premake4.lua premake5.lua patch -p1 < "${srcdir}/aur-${pkgname}.patch"+ patch -p1 < "${srcdir}/compiler-compat.patch"+ # Bundled zlib is built without running its configure script.+ sed -i 's/^#ifdef HAVE_UNISTD_H/#if 1/' src/zlib/zconf.h } ###############################################################################@@ -36,7 +41,8 @@ build() { cd t-engine4-src-${pkgver} premake5 gmake- make config=release+ # The engine defines its own bool type, which conflicts with C23.+ CFLAGS="$CFLAGS -std=gnu17" make config=release } ###############################################################################Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-04 06:06:05 | Medium | 1 |
| 2026-06-19 23:51:18 | Clean | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-19 18:54:17 | Low | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |