1 # Contributor: zoulnix <http://goo.gl/HQaP>
5 pkgdesc="A client for any game that uses Tibia-compatible protocol."
7 url="http://yatc.vucica.net/"
9 depends=('sdl_gfx' 'gmp' 'glict-svn>=105')
10 makedepends=('autoconf' 'automake' 'gcc' 'imagemagick' 'make' 'pkg-config' 'subversion')
18 _svntrunk="https://opentibia.svn.sourceforge.net/svnroot/opentibia/yatc/trunk"
24 msg "Getting sources..."
25 if [ -d ${_svnmod}/.svn ]; then
26 cd ${_svnmod} && svn up -r ${pkgver}
28 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
36 # Generating build system
37 ./autogen.sh || return 1
39 ./configure --prefix=/usr \
41 --localstatedir=/var \
48 cd ${srcdir}/${_svnmod}
49 install -d ${pkgdir}/usr/share/{applications,pixmaps} || return 1
51 make DESTDIR=${pkgdir} install || return 1
53 install -m644 ${srcdir}/${_svnmod}/debian/${_svnmod}.desktop \
54 ${pkgdir}/usr/share/applications/ || return 1
55 install -m644 ${_svnmod}.ico.png ${pkgdir}/usr/share/pixmaps/ || return 1