Package Details: augustus-git 4.0.0.r415.gb47ce83-1

Git Clone URL: https://aur.archlinux.org/augustus-git.git (read-only, click to copy)
Package Base: augustus-git
Description: An enhanced re-implementation of Caesar III (Original copy required)
Upstream URL: https://github.com/Keriew/augustus
Licenses: AGPL-3.0-only
Conflicts: augustus, augustus-game
Provides: augustus
Replaces: augustus-game
Submitter: FabioLolix
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 2
Popularity: 0.000025
First Submitted: 2024-10-23 05:24 (UTC)
Last Updated: 2024-10-23 16:58 (UTC)

Latest Comments

gonX commented on 2022-12-16 17:04 (UTC) (edited on 2022-12-16 17:05 (UTC) by gonX)

You need -DCMAKE_BUILD_TYPE="Release" with current master until they fix #770: https://github.com/Keriew/augustus/issues/770

The following diff does this, but additionally instead moves content to /usr/share instead of /opt. It seems like the suggested installation method is to simply keep the Caesar 3 files vanilla, so I suggest changing notes to accomodate this.

diff --git a/PKGBUILD b/PKGBUILD
index 8cfe44b..486a442 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 _pkgname=augustus
 pkgname=$_pkgname-game-git
 pkgdesc="An enhanced re-implementation of Caesar III (Original copy required)"
-pkgver=r4100.024367fb
+pkgver=r4801.0b60d54e
 pkgrel=1
 arch=('i686' 'x86_64')
 url="https://github.com/Keriew/augustus"
@@ -30,7 +30,7 @@ pkgver() {
 build() {
     cd "$srcdir/${_pkgname}"
     mkdir -p build && cd build
-    cmake ..
+    cmake -DCMAKE_BUILD_TYPE="Release" ..
     make
 }

@@ -41,11 +41,9 @@ package() {
     install -Dm664 "$srcdir/${_pkgname}/res/${_pkgname}_256.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}_game256.png"
     install -Dm664 "$srcdir/${_pkgname}/res/${_pkgname}_512.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}-game.png"
     install -Dm664 "${_pkgname}-game.desktop" "${pkgdir}/usr/share/applications/${_pkgname}-game.desktop"
+    install -Dm644 -t "${pkgdir}/usr/share/doc/augustus-game/" "$srcdir"/"${_pkgname}"/res/*manual*/*

-    # Install additional folders to /opt
-    install -m 775 -d "${pkgdir}/opt/${_pkgname}-game"
-    install -m 775 -d "${pkgdir}/opt/${_pkgname}-game/res/assets"
-    install -m 775 -d "${pkgdir}/opt/${_pkgname}-game/res/maps"
-    cp -r "$srcdir/${_pkgname}/res/assets" "${pkgdir}/opt/${_pkgname}-game/res/"
-    cp -r "$srcdir/${_pkgname}/res/maps" "${pkgdir}/opt/${_pkgname}-game/res/"
+    # Install additional folders to /usr/share
+    install -m 775 -d "${pkgdir}/usr/share/${_pkgname}-game/"
+    cp -r "$srcdir/${_pkgname}/res/assets" "$srcdir/${_pkgname}/res/maps" "${pkgdir}/usr/share/${_pkgname}-game/"
 }

I'm unsure if the pixmaps are correct, they're not something I use so I have no good way of testing them.

tlercher commented on 2021-12-30 12:20 (UTC)

@gonX: thanks for the info!

This time i just added the information to re-link the assets folder, but maybe i/we should work on a solution which does not require so much user attention (even for a -git package).

gonX commented on 2021-12-27 08:32 (UTC)

They've now moved assets into res/assets

tlercher commented on 2021-03-05 16:30 (UTC)

Sorry for the delay @igno2k, i was not reachable for some days...

But yep, they're removed the 'mods' folder and created an 'assets' folder, as seen in this PR: https://github.com/Keriew/augustus/pull/221

I updated the PKGBUILD accordingly.

Thank You!

igno2k commented on 2021-02-25 19:17 (UTC)

The mods folder does not exist anymore and the PKGBUILD fails.

Can you remove line 48: cp -r "$srcdir/${_pkgname}/mods" "${pkgdir}/opt/${_pkgname}-game/"

Without this line it builds fine.