Package Details: openra-d2-git 189.git.3c1489a-1

Git Clone URL: (read-only, click to copy)
Package Base: openra-d2-git
Description: A Dune II-inspired mod of OpenRA
Upstream URL:
Licenses: GPL3
Provides: openra-d2
Submitter: fusion809
Maintainer: fusion809
Last Packager: fusion809
Votes: 1
Popularity: 0.000000
First Submitted: 2019-03-23 11:23 (UTC)
Last Updated: 2020-06-15 14:31 (UTC)

Latest Comments

1 2 Next › Last »

hazelnot commented on 2021-11-06 11:13 (UTC)

sh: line 1: ./engine/packaging/ No such file or directory
make: *** [Makefile:142: version] Error 1
==> ERROR: A failure occurred in build().

Not sure what's going on, seems like some files are missing

fusion809 commented on 2019-09-28 06:06 (UTC)

@Mr.Smith1974 have you tried the latest commit I just pushed? It uses a new upstream commit that was designed to fix this error.

fusion809 commented on 2019-09-02 17:31 (UTC)

I've reported this issue upstream at the OpenRA/d2 GitHub repo,, as one of the lead developers of OpenRA told me in the #openra IRC channel that this is possibly due to an imprudent choice of game engine version.

fusion809 commented on 2019-09-02 16:28 (UTC)

Does this PKGBUILD work:

# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>

pkgdesc="A Dune II-inspired mod of OpenRA"
depends=('mono>=5.4' 'ttf-dejavu' 'openal' 'libgl' 'freetype2' 'sdl2' 'lua51' 'hicolor-icon-theme' 'gtk-update-icon-cache'
         'desktop-file-utils' 'xdg-utils' 'zenity')
makedepends=('dos2unix' 'git' 'unzip')

pkgver() {
    cd $srcdir/d2
    no=$(git rev-list --count HEAD)
    hash=$(git log | head -n 1 | cut -d ' ' -f 2 | head -c 7)
    printf "${no}.git.${hash}"

prepare() {
    cd $srcdir/d2
    dos2unix *.md
    chmod +x *.sh

build() {
    cd $srcdir/d2
    make version VERSION="${pkgver}"
    ENGINE_VERSION=$(cat mod.config | grep ^ENGINE_VERSION | cut -d '"' -f 2)
    wget -c $(cat mod.config | grep AUTOMATIC_ENGINE_SOURCE | cut -d '"' -f 2 | sed "s/\${ENGINE_VERSION}/${ENGINE_VERSION}/g")
    unzip ${ENGINE_VERSION}.zip
    mv OpenRA-${ENGINE_VERSION}* engine

package() {
    cd $srcdir/d2
    mkdir -p $pkgdir/usr/{lib/${_pkgname}/mods,bin,share/pixmaps,share/doc/packages/openra-d2,share/applications,share/appdata}
    install -dm775 $pkgdir/var/games/openra-d2
    cp -r engine/{glsl,lua,AUTHORS,COPYING,*.dll*,GeoLite2-Country.mmdb.gz,'global mix database.dat',,,OpenRA.Game.exe,OpenRA.Server.exe,OpenRA.Utility.exe,VERSION} $pkgdir/usr/lib/openra-d2
    cp -r mods/d2 $pkgdir/usr/lib/${_pkgname}/mods
    cp -r engine/mods/{common,modcontent,d2k,cnc,ra} $pkgdir/usr/lib/${_pkgname}/mods
    install -Dm755 $srcdir/openra-d2 $pkgdir/usr/bin/openra-d2
    cp -r $srcdir/openra-d2.appdata.xml $pkgdir/usr/share/appdata/openra-d2.appdata.xml
    cp -r $pkgdir/usr/share/doc/packages/${_pkgname}/
    ln -sf /usr/lib/${_pkgname}/mods/d2/icon.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png
    install -Dm644 $srcdir/openra-d2.desktop $pkgdir/usr/share/applications/openra-d2.desktop
#    mkdir -p $pkgdir/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,134x134,256x256}/apps
#    for size in 16 32 48 64 134 256; do
#      size="${size}x${size}"
#      cp packaging/linux/mod_${size}.png "$pkgdir/usr/share/icons/hicolor/${size}/apps/openra-d2.png"
#    done
    rm $pkgdir/usr/lib/${_pkgname}/*.sh


Mr.Smith1974 commented on 2019-09-02 16:16 (UTC)

I figured out what the problem is: he does not have time to download the engine and continue installation without it. I don't know whether the problem is PKGBUILD, or yay or script But you need to add a check if this file is fully downloaded.

fusion809 commented on 2019-09-02 14:56 (UTC)

Well, I'm stuck for ideas. I'm not a C# programmer, so I must admit the error is nonsense to me. Here is my build log, as I just installed it with yay: As you can see, the output is quite different.

Mr.Smith1974 commented on 2019-09-02 14:49 (UTC)

yes. It was clean attempt. The complete output of the build with an error like this:

fusion809 commented on 2019-09-02 14:30 (UTC) (edited on 2019-09-02 14:30 (UTC) by fusion809)

Was your build attempt a clean attempt? That is, did you run makepkg -C to clean the build root, to ensure there were no build artefacts left over from the last build attempt that could stuff up the attempted rebuild? If not, please do so now.

Mr.Smith1974 commented on 2019-09-02 14:27 (UTC) (edited on 2019-09-02 14:28 (UTC) by Mr.Smith1974)

I installed msbuild-bin from aur. It helped. But now I get a fatal build error:

/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.Test/OpenRA.Test.csproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file "/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.Test/OpenRA.Test.csproj.metaproj" /home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.PostProcess/OpenRA.PostProcess.csproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file "/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.PostProcess/OpenRA.PostProcess.csproj.metaproj" make[1]: [Makefile:152: core] Error 1 make[1]: Leaving directory '/home/admin/.cache/yay/openra-d2-git/src/d2/engine' make: [Makefile:110: engine] Error 2 Fetching NUnit from NuGet Fetching NUnit.Console from NuGet Fetching Open.Nat from NuGet Fetching FuzzyLogicLibrary from NuGet. Fetching SDL2-CS from GitHub. Fetching OpenAL-CS from GitHub. Fetching Eluant from GitHub. Fetching rix0rrr.BeaconLib from NuGet. /home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.sln.metaproj : error MSB4057: The target "restore" does not exist in the project. [/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.sln] make[1]: [Makefile:171: cli-dependencies] Error 1 make[1]: Leaving directory '/home/admin/.cache/yay/openra-d2-git/src/d2/engine' make: [Makefile:106: engine-dependencies] Error 2 ==> ERROR: A failure occurred in build().

fusion809 commented on 2019-09-02 14:20 (UTC)

Well, I don't get this error, so I'm not sure what the problem is. Do you have msbuild installed? If not, try installing it and then attempt a rebuild of this package. If it works, I'll add msbuild to the make deps.