updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / yatc-svn / PKGBUILD
blob728a47f92be5c713f981ba983420b563642bba2c
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=yatc-svn
3 pkgver=5504
4 pkgrel=1
5 pkgdesc="A client for any game that uses Tibia-compatible protocol."
6 arch=('i686' 'x86_64')
7 url="http://yatc.vucica.net/"
8 license=('GPL')
9 depends=('sdl_gfx' 'gmp' 'glict-svn>=105')
10 makedepends=('autoconf' 'automake' 'gcc' 'imagemagick' 'make' 'pkg-config' 'subversion')
11 options=('!libtool')
12 provides=('yatc')
13 conflicts=('yatc')
14 source=()
15 md5sums=('')
17 _svnmod="yatc"
18 _svntrunk="https://opentibia.svn.sourceforge.net/svnroot/opentibia/yatc/trunk"
20 build() { 
21   cd ${srcdir}
23   #####
24   msg "Getting sources..."
25   if [ -d ${_svnmod}/.svn ]; then
26     cd ${_svnmod} && svn up -r ${pkgver}
27   else
28     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
29     cd ${_svnmod}
30   fi
32   msg "SVN checkout done or server timeout"
33   msg "Starting make..."
34   #####
36   # Generating build system
37   ./autogen.sh || return 1
39   ./configure --prefix=/usr \
40               --sysconfdir=/etc \
41               --localstatedir=/var \
42               --disable-static
44   make || return 1
47 package() {
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