# Maintainer: Frederic Bezies # Contributor: George Tokmaji # Contributor: Benedict Etzel # Contributor: Jonathan Steel # Contributor: Sven-Hendrik Haase # Contributor: Wesley # Contributor: Lukas Werling pkgname=openclonk-git pkgrel=1 pkgver=7.0.r3173.g701bcf38c pkgdesc='Multiplayer-action-tactic-skill game' arch=('i686' 'x86_64') epoch=1 url='http://openclonk.org' license=('custom') depends=('freealut' 'miniupnpc' 'sdl2' 'qt5-base' 'hicolor-icon-theme' 'tinyxml' 'libepoxy' 'libvorbis') makedepends=('cmake' 'boost' 'mesa' 'git') provides=('openclonk') conflicts=('clonk_rage' 'openclonk' 'openclonk-music') source=("$pkgname::git+https://github.com/openclonk/openclonk#branch=master") sha256sums=('SKIP') pkgver() { cd "$pkgname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2-48 } build() { cd ${pkgname} [[ -d build ]] && rm -rf build mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2 make } package() { cd ${pkgname}/build make DESTDIR="$pkgdir" install cd .. # replace the music packet with unpacked music to allow adding music rm -rf "$pkgdir/usr/share/openclonk/Music.ocg" install -Dm644 planet/Music.ocg/* -t "$pkgdir/usr/share/openclonk/Music.ocg" # licenses install -dm755 "$pkgdir"/usr/share/licenses/$pkgname install -m644 licenses/*.txt "$pkgdir"/usr/share/licenses/$pkgname }