1 # Maintainer: Dmitrij D. Czarkoff <czarkoff@gmail.com>
2 # Contributor: zoulnix <http://goo.gl/HQaP>
7 pkgdesc="A free, turn-based strategy game in spirit of Warlords II"
9 url="http://www.nongnu.org/lordsawar/"
11 depends=('gtkmm' 'sdl_mixer' 'libxml2' 'libxslt')
12 makedepends=('intltool' 'libtar' 'boost' 'subversion')
13 conflicts=('lordsawar')
15 install="lordsawar-svn.install"
16 source=("configure.ac.patch"
17 "lordsawar-editor-32.png"
18 "lordsawar-editor-64.png"
19 "lordsawar-editor.desktop")
20 md5sums=('ad54b221c58bdb3450cdb7d80a843949'
21 '063de7530fe208f22037371f5a103b86'
22 '8c4baee495aa55e5e250dd735ff0b8ba'
23 '0927bb356c8c184cad13761012f6ad92')
26 _svntrunk="svn://svn.sv.gnu.org/${_svnmod}/${_svnmod}/trunk"
31 msg "Checking if previous sources are saved"
32 if [ -f $SRCDEST/${pkgname}.tar.gz ]
34 msg "Unpacking previous sources"
35 tar xzf $SRCDEST/${pkgname}.tar.gz
38 msg "Getting latest revision from SVN..."
39 if [ -d ${pkgname}/.svn ]
45 svn co ${_svntrunk} --config-dir ./ ${pkgname} || return 1
47 msg "SVN checkout done"
49 msg "Backing up source tree"
50 tar czf $SRCDEST/${pkgname}.tar.gz ${pkgname}
53 msg "Starting make..."
55 patch -up0 -i ${srcdir}/configure.ac.patch
57 # Workaround to make gettextize non-interactive
59 sed -e 's:read dummy < /dev/tty::' `which gettextize` > gettextize
61 ./autogen.sh # this is what You have to keep
62 msg "We pressed Return for You, now running \"aclocal -I m4\" and \"autoconf\"."
68 # You may want to append to "./configure":
69 # don't compile editor
71 # don't compile play-by-mail
73 # don't compile game list server
75 # don't compile game host server
77 # zip save files (experimental)
82 --disable-sdltest || return 1
87 install -m 644 -D "${srcdir}/lordsawar-editor.desktop" "${pkgdir}/usr/share/applications/lordsawar-editor.desktop"
88 install -m 644 -D "${srcdir}/lordsawar-editor-32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/lordsawar-editor.png"
89 install -m 644 -D "${srcdir}/lordsawar-editor-64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/lordsawar-editor.png"
90 cd "${srcdir}/${pkgname}"
91 make DESTDIR="${pkgdir}/" install || return 1