summaryrefslogtreecommitdiff
path: root/community/widelands-data/PKGBUILD
blob: e83fd47546ffb11350e9301fa4d1d6b2fe7db1b0 (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
# $Id: PKGBUILD 57510 2011-10-29 20:40:01Z lcarlier $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <rabyte*gmail>

pkgname=widelands-data
pkgver=16
_realver=build16
pkgrel=1
pkgdesc="Widelands data files"
arch=('any')
url="http://widelands.org/"
license=('GPL')
makedepends=('cmake' 'boost' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'sdl_gfx' 'ggz-client-libs' 'lua' 'glew' 'python2')
source=(http://launchpad.net/widelands/build16/$_realver/+download/widelands-$_realver-src.tar.bz2)
md5sums=('3d8c28e145b73c64d8ed1625319d25a2')

build() {
    cd $srcdir/widelands-$_realver-src

    mkdir -p build/compile && cd build/compile

    cmake ../.. -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DWL_INSTALL_PREFIX=/usr \
        -DWL_INSTALL_DATADIR=share/widelands \
        -DWL_INSTALL_BINDIR=bin
    make
}

package() {
    cd $srcdir/widelands-$_realver-src/build/compile

    make DESTDIR="$pkgdir" install

    rm -r "$pkgdir"/usr/{bin,share/widelands/{ChangeLog,COPYING,CREDITS,VERSION}}
}