app=balsa
version=2.5.11
build=1sml
homepage="https://pawsa.fedorapeople.org/balsa/"
download="https://pawsa.fedorapeople.org/balsa/balsa-2.5.11.tar.bz2"
desc="GTK+3 mail client with support for GPG"
requires="gcc-libs pcre netbsd-curses libpng libical libnotify gnutls libgpg-error sqlite icu libogg libvorbis gtk3 graphite2 webkitgtk"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  applypatch $srcdir/misc.c.patch

  ./configure \
    --prefix="" \
    --with-html-widget=webkit2 \
    --with-sqlite \
    --with-libsecret \
    --with-canberra \
    --with-gcr

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
cf29c86424b5323db4c85743c193b57e9515ffd62f6774c5dffa4cd41d84301333d9fdca804d72c6a79d2228ec75ff1b4f0548a2239e7cc89dfdf19abe74035b  balsa-2.5.11.tar.lz
4e01113f17e8a3feef4a231ece5babc93d67b0caf7484aba69cd5a9fbee7e70062e78e279b5b3dfe4936e9596706ce2b4f7dde89bd50fa1f5b36d10578cfdec4  misc.c.patch
"
