# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=beecrypt
pkgver=4.2.1
pkgrel=5.1
pkgdesc="A strong and fast cryptography toolkit"
arch=('i686' 'x86_64')
url="http://beecrypt.sourceforge.net/"
license=('LGPL')
depends=('icu')
makedepends=('python2')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
sha256sums=('286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  CXXFLAGS=-fpermissive
  ./configure --prefix=/usr --sysconfdir=/etc --without-java --disable-openmp --with-python=python2
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
}
