# $Id: PKGBUILD 109114 2014-04-10 13:51:29Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: wahnby <wahnby@yahoo.fr>

pkgname=gnunet-gtk
pkgver=0.10.1
pkgrel=1
pkgdesc="A frontend for GNUnet"
arch=('i686' 'x86_64')
url="http://gnunet.org"
license=('GPL')
depends=('gnunet' 'glade' 'adns')
makedepends=('pkgconfig')
source=(ftp://ftp.gnu.org/gnu/gnunet/$pkgname-$pkgver.tar.gz)
md5sums=('e94d3fea027aa6734a201e4a03c6b752')

build() {
  cd $srcdir/$pkgname-$pkgver
  sed -i 's|CC -E|CC -O2 -E|g' configure
  ./configure --prefix=/usr --with-gnunet=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}
