# $Id: PKGBUILD 223687 2014-09-29 16:24:41Z bpiotrowski $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Nezmer <Nezmer@gmail.com>

pkgname=fribidi
pkgver=0.19.6
pkgrel=2
pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://fribidi.org"
depends=('glib2')
source=("http://fribidi.org/download/${pkgname}-${pkgver}.tar.bz2")
md5sums=('ce93d862344991173dabb609bf93ca1d')

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

  ./configure --prefix=/usr \
    --enable-malloc # FS#42017
  make
}

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

  make DESTDIR="${pkgdir}" install
}
