# $Id: PKGBUILD 86106 2010-07-25 21:30:58Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=cabextract
pkgver=1.3
pkgrel=1
pkgdesc="A program to extract Microsoft cabinet (.CAB) files."
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.cabextract.org.uk/"
depends=('glibc')
source=(http://www.cabextract.org.uk/${pkgname}-${pkgver}.tar.gz)
md5sums=('cb9a4a38470d2a71a0275968e7eb64d3')

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

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --mandir=/usr/share/man || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
}