# Maintainer: Soulo <leo@soulou.fr>

pkgname=yad-svn
pkgver=567
pkgrel=1
pkgdesc="Display graphical dialogs from shell scripts or command line"
url="http://code.google.com/p/yad/"
arch=('i686' 'x86_64')
conflicts=("yad")
license=('GPL2')
depends=('bash' 'gtk3' 'gettext' 'intltool' 'hicolor-icon-theme' )
provides=("yad-svn=$pkgver" "yad")

install='yad.install'

_svntrunk=http://yad.googlecode.com/svn/trunk
_svnmod=yad

sha1sums=('70cdc64b83dc845a632387c7fd59fb4606e23d4d')

build() {
  cd ${srcdir}

  msg "Checking out source from SVN repository..."
      if [ -d $_svnmod/.svn ]; then
          cd $_svnmod
          svn up
      else
          svn co $_svntrunk $_svnmod
      fi

  msg "Checkout complete (or server timeout)"
  msg "Build process : Start"

  cd ${srcdir}/$_svnmod
   
  export LDFLAGS='-lX11' 
  autoreconf -i
  ./configure --prefix=/usr --with-gtk=gtk3 || return 1
  make || return 1
  make prefix=${startdir}/pkg/usr install || return 1
#  rm ${pkgdir}/usr/share/icons/hicolor/icon-theme.cache
}
