Package Details: openclonk 8.1-3

Git Clone URL: https://aur.archlinux.org/openclonk.git (read-only, click to copy)
Package Base: openclonk
Description: Multiplayer-action-tactic-skill game
Upstream URL: http://openclonk.org
Keywords: clonk
Licenses: custom
Conflicts: clonk_rage
Submitter: xyproto
Maintainer: B_E
Last Packager: B_E
Votes: 16
Popularity: 0.004604
First Submitted: 2013-10-07 20:44 (UTC)
Last Updated: 2018-05-17 13:23 (UTC)

Latest Comments

Osama commented on 2022-07-03 00:03 (UTC) (edited on 2022-07-03 22:24 (UTC) by Osama)

make[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/libc4script.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
 -> error making: openclonk

swilde commented on 2021-12-22 01:36 (UTC)

Adding the missing include to src/C4Include.h worked for me, so that the package could be build (and the game runs).

patch -p0 <<EOF
--- src/C4Include.h     2021-12-19 17:41:48.582524190 +0100
+++ src/C4Include.h     2021-12-19 17:17:23.081307976 +0100
@@ -52,6 +52,7 @@
 #include <ctime>
 #include <iostream>
 #include <list>
+#include <limits>
 #include <map>
 #include <memory>
 #include <regex>
EOF

mctom commented on 2021-11-22 20:55 (UTC)

I applied changes proposed by mintish below, but apparently this #include is also necessary in some other headers too. Build failed at C4AulParse.cpp:1608:95.

mintish commented on 2021-08-14 01:51 (UTC) (edited on 2021-08-14 02:07 (UTC) by mintish)

I had issues getting this package to build on a system with GCC11 (missing #include <limits>).

Patching C4Reloc.h with the missing include fixed the issue for me:

diff --git a/src/config/C4Reloc.h b/src/config/C4Reloc.h
index a1aef033d..4e156525f 100644
--- a/src/config/C4Reloc.h
+++ b/src/config/C4Reloc.h
@@ -12,7 +12,7 @@
  * To redistribute this file separately, substitute the full license texts
  * for the above references.
  */
-
+#include <limits>
 #ifndef C4RELOC_H
 #define C4RELOC_H

Updated PKGBUILD

# Maintainer: Benedict Etzel <developer@beheh.de>
# Contributor: Jonathan Steel <mail at jsteel dot org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Wesley <rudirennsau at hotmail dot com>
# Contributor: Lukas Werling <lukas.werling@gmail.com>

pkgname=openclonk
pkgver=8.1
pkgrel=3
pkgdesc='Multiplayer-action-tactic-skill game'
arch=('i686' 'x86_64')
url='http://openclonk.org'
license=('custom')
depends=('glew' 'freealut' 'libvorbis' 'qt5-base' 'sdl2' 'miniupnpc' 'hicolor-icon-theme')
makedepends=('cmake' 'mesa')
optdepends=('openclonk-music: proprietary music package')
conflicts=('clonk_rage')
source=("https://github.com/openclonk/openclonk/archive/v$pkgver.tar.gz"
        'directories.patch'
        'fix-gcc11-build-failure.patch')
sha256sums=('fea0cd473334c9adf74a8930c42c78b8c2eb9255e267976a700910e07d2a0506'
            'b3104190549b35206158b58c61b80b26f300efd9dd30f507361234d7d70fd10a'
            '7a31156a7b12cdd1fd126c8bf5748f6005831cd83e4897fb087937fbdd225df1')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i ../directories.patch
  patch -p1 -i ../fix-gcc11-build-failure.patch
}

build() {
  cd ${pkgname}-${pkgver}

  [[ -d build ]] && rm -rf build
  mkdir build && cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2 \
    -DAudio_FIND_REQUIRED=On \
    -DAudio_TK=OpenAL

  make
}

package() {
  cd ${pkgname}-${pkgver}/build

  make DESTDIR="$pkgdir/" install

  # licenses
  install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
  install -m644 ../licenses/*.txt "$pkgdir"/usr/share/licenses/$pkgname
}

B_E commented on 2018-05-17 13:24 (UTC)

Thanks JCaesar and ondoho, I've incorporated both your feedback.

ondoho commented on 2018-05-13 16:26 (UTC) (edited on 2018-05-13 16:27 (UTC) by ondoho)

it doesn't seem to find the sources at git.openclonk.org anymore.

but the same release is also on github, and this PKGBUILD works:

# Maintainer: Benedict Etzel <developer@beheh.de>
# Contributor: Jonathan Steel <mail at jsteel dot org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Wesley <rudirennsau at hotmail dot com>
# Contributor: Lukas Werling <lukas.werling@gmail.com>

pkgname=openclonk
pkgver=8.1
pkgrel=2
pkgdesc='Multiplayer-action-tactic-skill game'
arch=('i686' 'x86_64')
url='http://openclonk.org'
license=('custom')
depends=('glew' 'freealut' 'libvorbis' 'qt5-base' 'sdl2' 'miniupnpc' 'hicolor-icon-theme')
makedepends=('cmake' 'mesa')
optdepends=('openclonk-music: proprietary music package')
conflicts=('clonk_rage')
source=("https://github.com/openclonk/openclonk/archive/v$pkgver.tar.gz"
        'directories.patch')
sha256sums=('fea0cd473334c9adf74a8930c42c78b8c2eb9255e267976a700910e07d2a0506'
            'b3104190549b35206158b58c61b80b26f300efd9dd30f507361234d7d70fd10a')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i ../directories.patch
}

build() {
  cd ${pkgname}-${pkgver}

  [[ -d build ]] && rm -rf build
  mkdir build && cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2 \
    -DAudio_FIND_REQUIRED=On \
    -DAudio_TK=OpenAL

  make
}

package() {
  cd ${pkgname}-${pkgver}/build

  make DESTDIR="$pkgdir/" install

  # licenses
  install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
  install -m644 ../licenses/*.txt "$pkgdir"/usr/share/licenses/$pkgname
}

JCaesar commented on 2018-03-31 03:08 (UTC) (edited on 2018-03-31 03:08 (UTC) by JCaesar)

Just two minor things:

  • boost shouldn't be required anymore

  • Using sdl2_mixer is kinda deprecated and should probably be removed upstream Might be better to build with -DAudio_FIND_REQUIRED=On -DAudio_TK=OpenAL to avoid any shenanigans

B_E commented on 2018-03-17 11:43 (UTC)

I managed to build with sdl2 alone (without sdl2_mixer). Either way, I'm cleaning up the dependencies.

RemoteAdmin commented on 2018-03-16 11:38 (UTC)

Requires sdl2_mixer - otherwise, it fails to build with:

-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) 
-- Could NOT find SDL2Mixer (missing: SDL2Mixer_LIBRARY SDL2Mixer_INCLUDE_DIR SDL2_LIBRARIES SDL2_INCLUDE_DIRS) 
-- Using Audio toolkit: OpenAL
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)

B_E commented on 2016-01-20 12:37 (UTC)

I've included the commit and cleaned up the whole PKGBUILD, including the dependencies, a bit (according to the official README).

Luchs commented on 2016-01-19 16:55 (UTC)

I don't think it's possible to install the official binaries as packages; they only search for game files in the same directory. For the music package, here's an updated PKGBUILD: https://gist.github.com/lluchs/ed798c6680f14ca837b6#file-pkgbuild (It's actually a full clone of the repository, you can add it as remote and pull my commit.) It packages the Music.ocg group as unpacked folder, allowing a separate music package (openclonk-music) to add the proprietary music to the folder. I also listed this package as optional dependency.

B_E commented on 2016-01-18 13:41 (UTC)

I'll have to think about this. I also wanted to offer a binary PKGBUILD at some point, so people don't need to recompile on every update. What do people think about copying this package to "openclonk-src" and making "openclonk" a binary downloader with an option for Music.ocg?

Luchs commented on 2016-01-18 13:05 (UTC)

It would be cool if we could package the proprietary music pack (from http://www.openclonk.org/download/Music.ocg) as well. I don't think it's possible to replace the file from a separate package, so maybe an option in the PKGBUILD here would be the way to go?

B_E commented on 2016-01-16 00:18 (UTC)

I'm away for the weekend and will update to 7.0 early next week.

maxmitti commented on 2015-06-18 09:59 (UTC)

Nevermind, i wouldnt install CR through the AUR. But maybe one c4group could just be renamed, or so.

B_E commented on 2015-06-17 15:32 (UTC)

Because of /usr/bin/c4group, unfortunately.

maxmitti commented on 2015-06-17 15:30 (UTC)

Why does this conflict with clonk_rage?

Xabre commented on 2015-03-17 14:40 (UTC)

Works now, thanks.

B_E commented on 2015-03-17 07:51 (UTC)

Okay, I've included the patch in 6.0-2.

Xabre commented on 2015-03-17 00:18 (UTC)

https://paste.kde.org/pusbt39ql Maybe that patch will help?

B_E commented on 2015-03-16 20:57 (UTC)

I've actually got no problems building and playing it on my machine. When does the patch help?

V1del commented on 2015-03-16 15:40 (UTC)

The release has a build problem and needs the following patch to be applied https://git.openclonk.org/openclonk.git/patch/fd6914f9cba6d7138b57c7fa6faa7437d9cbb639 Updated PKGBUILD https://drive.google.com/file/d/0BxKSInX_4lqZTWFTRjJwWHhsTk0/view?usp=sharing

B_E commented on 2015-03-15 20:35 (UTC)

OpenClonk is switching to X.X versioning. Updating the package respectively.

B_E commented on 2014-06-26 13:29 (UTC)

I've patched the source to install the binary to /usr/bin instead of /usr/games, thanks for noticing!

chrys87 commented on 2014-06-26 12:47 (UTC)

information to the 5.4.1-1 i have to set an link from the binary in /usr/games/openclonk to /usr/bin sudo ln -s /usr/games/openclonk /usr/bin/ or you include /usr/games/ into your path variable. without this you the openclonk.desktop doesnt work. the bash also does not find the binary to the game and you have always to type /usr/games/openclonk to start the game.

B_E commented on 2014-01-30 14:14 (UTC)

I adopted the package and updated the PKGBUILD. Note that this package conflicts with the clonk_rage package, since both provide their respective versions of /usr/bin/c4group.

RazZziel commented on 2014-01-29 21:12 (UTC)

New version available, this one doesn't build http://www.openclonk.org/builds/release/5.4.0/openclonk-5.4.0.tar.bz2 curl: (22) The requested URL returned error: 404 Not Found ==> ERROR: Failure while downloading openclonk-release-5.3.3-src.tar.gz Aborting...

xyproto commented on 2013-10-07 20:53 (UTC)

Moved from [community] to AUR in connection with the 2013 Midyear Cleanup.