Package Details: openclonk 8.1-3

Git Clone URL: https://aur.archlinux.org/openclonk.git (read-only)
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: 13
Popularity: 0.125817
First Submitted: 2013-10-07 20:44
Last Updated: 2018-05-17 13:23

Latest Comments

1 2 3 Next › Last »

B_E commented on 2018-05-17 13:24

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

ondoho commented on 2018-05-13 16:26

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

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

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

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

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

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

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

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

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