# Contributor: Rorschach pkgname=vidalia pkgver=0.1.13 pkgrel=1 pkgdesc="Controller GUI for Tor" url="http://vidalia-project.net" arch=('i686' 'x86_64') license="GPL" depends=('qt>=4.2.0' ) makedepends=('cmake>=2.4.0') source=(http://vidalia-project.net/dist/$pkgname-$pkgver.tar.gz arch_menuicon.patch vidalia.png) md5sums=('b0fcd0a9c30b1ed545981fa7d8ac7d71' '81faa5d013409090f0eed9aa2b0f5fed' '5ec703cf17d75f880b2494495a5d2a58') build() { [ -f /etc/profile.d/qt4.sh ] && source /etc/profile.d/qt4.sh patch -p0 < ../arch_menuicon.patch cd $pkgname-$pkgver cmake -D CMAKE_INSTALL_PREFIX=/usr . make || return 1 make DESTDIR=$pkgdir install install -Dm644 doc/vidalia.1.in $pkgdir/usr/share/man/man1/vidalia.1 install -Dm644 $srcdir/vidalia.png $pkgdir/usr/share/pixmaps/vidalia.png }