# $Id: PKGBUILD 219587 2014-08-11 23:47:37Z fyan $
# Maintainer: Angel Velasquez <angvp@archlinux.org> 
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>

pkgname=serf
pkgver=1.3.7
pkgrel=1
pkgdesc="High-performance asynchronous HTTP client library"
arch=('i686' 'x86_64')
url="http://code.google.com/p/serf/"
license=('Apache')
depends=('apr-util')
makedepends=('scons')
options=('!staticlibs')
source=(http://serf.googlecode.com/svn/src_releases/${pkgname}-${pkgver}.zip)
md5sums=('123ee11e5877d2f31f81965e60f83bb2')

build() {
  cd ${pkgname}-${pkgver}
  scons PREFIX=/usr GSSAPI=/usr/bin/krb5-config
}

check() {
  cd ${pkgname}-${pkgver}
  scons check
}

package() {
  cd ${pkgname}-${pkgver}
  install -d "${pkgdir}/usr"
  scons PREFIX="${pkgdir}/usr" install
}
