summaryrefslogtreecommitdiff
path: root/community/openclonk/PKGBUILD
blob: c3aebc93c1fe5ecfb8b63d8419b06500870314be (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
$Id: PKGBUILD 80496 2012-11-22 21:30:12Z jsteel $
# Maintainer: Jonathan Steel <mail at jsteel dot org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Wesley <rudirennsau at hotmail dot com>

pkgname=openclonk
pkgver=5.3.2
pkgrel=1
pkgdesc="A multiplayer-action-tactic-skill game"
arch=('i686' 'x86_64')
url="http://openclonk.org"
license=('custom')
conflicts=('openclonk-hg')
depends=('gtk2' 'glew' 'sdl_mixer' 'libxpm'  'hicolor-icon-theme' 'libupnp')
makedepends=('cmake' 'boost' 'imagemagick' 'mesa')
install=$pkgname.install
source=(http://hg.openclonk.org/$pkgname/archive/$pkgname-release-$pkgver-src.tar.gz)
md5sums=('0d43b03f10c8af7a9022f023b21bb1b3')

build() {
  cd "$srcdir"/$pkgname-release-$pkgver-src

  [[ -d build ]] && rm -rf build
  mkdir build && cd build

  cmake ../ -DCMAKE_INSTALL_PREFIX=/usr

  make 
}

package() {
  cd "$srcdir"/$pkgname-release-$pkgver-src/build

  make DESTDIR="$pkgdir" install

  install -Dm644 clonk.png "$pkgdir"/usr/share/pixmaps/clonk.png

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