battles-of-brass-git

LOW
maintainer truelockmc 0 votes scanned 2026-11-01 20:01:18.389276
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: true_lock <anonyson@proton.me>
2
3pkgname=battles-of-brass-git
4_pkgname=battles-of-brass
5pkgver=1.0.r38.4d2284b
6pkgrel=1
7pkgdesc='Battles of Brass, a game inspired by Spirits of Steel, made in java! (git version)'
8arch=('any')
9url='https://github.com/BattlesOfBrass/BOB'
10license=('GPL-3.0-only')
11depends=('java-runtime>=21')
12makedepends=('git' 'gradle' 'jdk21-openjdk')
13provides=("${_pkgname}")
14conflicts=("${_pkgname}")
15source=("${_pkgname}::git+https://github.com/BattlesOfBrass/BOB.git"
16 "${_pkgname}-assets::git+https://github.com/BattlesOfBrass/assets.git"
17 'bob.sh'
18 'bob.desktop')
19sha256sums=('SKIP'
20 'SKIP'
21 'd994af5ecddd8327bb721d41585908db1cadc2486a959706d76b6ed455be7a64'
22 'f3a629d5fde3b39df40db2c64d9b57814502748d7a5f2146c11eb8801338afd0')
23
24pkgver() {
25 cd "${srcdir}/${_pkgname}"
26 # The upstream has no tags, so build the version from gradle.properties
27 # (e.g. "1.0-SNAPSHOT" -> "1.0") plus the commit count and short hash
28 local _ver
29 _ver=$(sed -n 's/^appVersion=\([0-9.]*\).*/\1/p' gradle.properties)
30 printf '%s.r%s.%s' "${_ver:-0}" \
31 "$(git rev-list --count HEAD)" \
32 "$(git rev-parse --short=7 HEAD)"
33}
34
35build() {
36 cd "${srcdir}/${_pkgname}"
37
38 # Requires a Java 21 toolchain
39 export JAVA_HOME=/usr/lib/jvm/java-21-openjdk
40 export PATH="${JAVA_HOME}/bin:${PATH}"
41 # Keep Gradle's cache inside the build directory
42 export GRADLE_USER_HOME="${srcdir}/gradle-home"
43
44 # Only build the fat JAR.
45 gradle shadowJar \
46 --no-daemon \
47 --console=plain \
48 -Dorg.gradle.java.installations.auto-download=false
49}
50
51package() {
52 cd "${srcdir}/${_pkgname}"
53
54 install -Dm644 build/libs/BOB-main.jar \
55 "${pkgdir}/usr/share/java/${_pkgname}/BOB-main.jar"
56
57 install -Dm755 "${srcdir}/bob.sh" "${pkgdir}/usr/bin/bob"
58 install -Dm644 "${srcdir}/bob.desktop" \
59 "${pkgdir}/usr/share/applications/bob.desktop"
60 install -Dm644 "${srcdir}/${_pkgname}-assets/logo/BOB_logo_large.png" \
61 "${pkgdir}/usr/share/pixmaps/bob.png"
62
63 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
64}
65

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 20:01:18 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