updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lordsawar / PKGBUILD
blobbb59ebca6bb11abd3f2203f08e451aa6c91562cf
1 # Maintainer: Dmitrij D. Czarkoff <czarkoff@gmail.com>
2 # Contributor: Anton Bazhenov <anton.bazhenov@gmail.com>
3 # Contributor: Christoph Zeiler <rabyte@gmx.dot.org>
4 # Contributor: Adrián Chaves Fernández aka Gallaecio <adriyetichaves@gmail.com>
6 pkgname=lordsawar
7 pkgver=0.2.0
8 pkgrel=8
9 pkgdesc="A free, turn-based strategy game in spirit of Warlords II"
10 arch=('i686' 'x86_64')
11 url="http://www.nongnu.org/lordsawar/"
12 license=('GPL3')
13 depends=('gtkmm' 'sdl_mixer')
14 makedepends=('pkgconfig' 'gettext' 'intltool' 'libtar' 'boost')
15 conflicts=('lordsawar-svn')
16 changelog="ChangeLog"
17 install="lordsawar.install"
18 source=("http://download.savannah.gnu.org/releases-noredirect/${pkgname}/${pkgname}-${pkgver}.tar.gz"
19         "lordsawar-editor.desktop"
20         "lordsawar-editor-32.png"
21         "lordsawar-editor-64.png")
22 md5sums=('06772b3fe86fd5af6d54fd6474b77487'
23          '0927bb356c8c184cad13761012f6ad92'
24          '063de7530fe208f22037371f5a103b86'
25          '8c4baee495aa55e5e250dd735ff0b8ba')
27 build() {
28   cd "${srcdir}/${pkgname}-${pkgver}"
30 # You may want to append to "./configure":
31 # don't compile editor
32 #    --disable-editor \
33 # don't compile play-by-mail
34 #    --disable-pbm \
35 # don't compile game list server
36 #    --disable-gls \
37 # don't compile game host server
38 #    --disable-ghs \
39 # zip save files (experimental)
40 #    --enable-zipping \
41   ./configure \
42     --prefix=/usr \
43     --disable-static \
44     --disable-sdltest || return 1
45   make || return 1
48 package() {
49   install -m 644 -D "${srcdir}/lordsawar-editor.desktop" "${pkgdir}/usr/share/applications/lordsawar-editor.desktop"
50   install -m 644 -D "${srcdir}/lordsawar-editor-32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/lordsawar-editor.png"
51   install -m 644 -D "${srcdir}/lordsawar-editor-64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/lordsawar-editor.png"
52   cd "${srcdir}/${pkgname}-${pkgver}"
53   make DESTDIR="${pkgdir}/" install || return 1
54   rm -r ${pkgdir}/usr/share/gnome