blob: e0e2ab99f30e30c6874b647d2d75a928f7d8a05c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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=7.0
pkgrel=3
_orig=$pkgname-$pkgver-src
pkgdesc='Multiplayer-action-tactic-skill game'
arch=('i686' 'x86_64')
url='http://openclonk.org'
license=('custom')
depends=('gtk2' 'glew' 'sdl_mixer' 'libxpm' 'hicolor-icon-theme' 'libupnp')
makedepends=('cmake' 'boost' 'imagemagick' 'mesa')
optdepends=('openclonk-music: proprietary music package')
conflicts=('clonk_rage')
install=$pkgname.install
source=("http://openclonk.org/builds/release/$pkgver/$pkgname-$pkgver-src.tar.bz2" 'directories.patch')
md5sums=('96303965e696ac284f054ce58ee51fa9'
'ba6ceecd5b2d3983d94e7d3aa24df5fd')
prepare() {
cd "${srcdir}/${_orig}"
patch -p1 -i ../directories.patch
}
build() {
cd "${srcdir}/${_orig}"
[[ -d build ]] && rm -rf build
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2
make
}
package() {
cd "${srcdir}/${_orig}"
cd build
make DESTDIR="$pkgdir" install
# Replace the music packet with unpacked music to allow adding music.
rm "$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
}
# vim: ts=2 sw=2 et:
|