1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
5 pkgdesc="A cross-platform library for accessing Dwarf Fortress memory"
7 url="http://sourceforge.net/projects/dfhack/"
8 license=('custom:zlib')
9 depends=(gcc-libs libx11)
10 makedepends=(cmake git gcc-multilib)
11 conflicts=(dfhack-git)
17 my_gitroot="git://github.com/peterix/dfhack.git"
22 msg "Connecting to GIT server...."
24 if [ -d $my_gitname ] ; then
25 cd $my_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $my_gitroot $my_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$my_gitname-build"
35 git clone "$srcdir/$my_gitname" "$srcdir/$my_gitname-build"
36 cd "$srcdir/$my_gitname-build"
37 git checkout -b "v${pkgver}" "${pkgver}"
45 -DCMAKE_BUILD_TYPE:string=Release \
46 -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
47 -DMEMXML_DATA_PATH:path=/usr/share/dfhack || return 1
52 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/dfhack/LICENCE"
55 # vim:set ts=2 sw=2 et: