Package Details: the-honkers-railway-launcher-git 1.2.2.r18.gb8f585e-1

Git Clone URL: https://aur.archlinux.org/the-honkers-railway-launcher-git.git (read-only, click to copy)
Package Base: the-honkers-railway-launcher-git
Description: A launcher for a specific anime game with auto-patching, discord rpc and time tracking
Upstream URL: https://github.com/an-anime-team/the-honkers-railway-launcher
Licenses: GPL3
Conflicts: the-honkers-railway-launcher-bin
Provides: the-honkers-railway-launcher
Submitter: AltedPio
Maintainer: AltedPio
Last Packager: AltedPio
Votes: 0
Popularity: 0.000000
First Submitted: 2023-07-11 15:31 (UTC)
Last Updated: 2023-07-11 15:31 (UTC)

Latest Comments

HurricanePootis commented on 2024-09-23 19:19 (UTC)

Hello, this package could do with a few changes:

  1. Provide an SPDX compliant license()
  2. Add conflicts() and provides() to this package, as is required by any -git, -bin, etc. package.
  3. Replace rust with cargo in makedepends(), as per the Rust Guidelines.
  4. Add git to makedepends().
  5. Make sure preprare() and build() are following the Rust Guidelines.
  6. No need to install the binary to /usr/lib if you are going to symlink it to /usr/bin/
diff --git a/PKGBUILD b/PKGBUILD
index c8c658b..df46f4f 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,16 @@

 pkgname=the-honkers-railway-launcher-git
 _pkgname="${pkgname%-git}"
-pkgver=1.2.2.r18.gb8f585e
+pkgver=1.8.2.r0.gb47bf74
 pkgrel=1
 pkgdesc="A launcher for a specific anime game with auto-patching, discord rpc and time tracking"
 url="https://github.com/an-anime-team/the-honkers-railway-launcher"
 provides=("the-honkers-railway-launcher")
 conflicts=("the-honkers-railway-launcher-bin")
 arch=("x86_64")
-license=("GPL3")
+license=("GPL-3.0-only")
+provides=("the-honkers-railway-launcher")
+conflicts=("the-honkers-railway-launcher")

 pkgver(){
     cd "$_pkgname"
@@ -30,7 +32,7 @@ depends=(
     "glibc"
 )

-makedepends=(rust)
+makedepends=(cargo git)

 optdepends=(
     "mangohud: FPS Hud/GUI"
@@ -52,26 +54,25 @@ md5sums=(

 prepare() {
     cd $_pkgname
-    git switch next
-    git pull
-    git submodule update --init --recursive --single-branch
+    cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }

 build() {
     cd $_pkgname
-    cargo build --release
+    export RUSTUP_TOOLCHAIN=stable
+    export CARGO_TARGET_DIR=target
+    export CFLAGS+=" -ffat-lto-objects"
+    cargo build --frozen --release --target-dir target
+
 }

 package() {
     cd $_pkgname

-    install -dm755 "${pkgdir}/usr/lib/${pkgname}"
-    install -dm755 "${pkgdir}/usr/bin/"
-    cp target/release/honkers-railway-launcher "${pkgdir}/usr/lib/${pkgname}/the-honkers-railway-launcher"
+    install -Dm755 target/release/honkers-railway-launcher "${pkgdir}/usr/lib/${pkgname}/the-honkers-railway-launcher"

     install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/pixmaps/the-honkers-railway-launcher.png"
-    ln -s "/usr/lib/${pkgname}/the-honkers-railway-launcher" "${pkgdir}/usr/bin/the-honkers-railway-launcher"
     install -Dm644 "${srcdir}/the-honkers-railway-launcher.desktop" -t "${pkgdir}/usr/share/applications"
-    install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/moe.launcher.the-honkers-railway-launcher.png"
+    install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/moe.launcher.the-honkers-railway-launcher.png"
 }