# $Id: PKGBUILD 90211 2010-09-09 07:35:10Z tpowa $
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=xfsprogs
pkgver=3.1.4
pkgrel=1
pkgdesc="XFS filesystem utilities"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://oss.sgi.com/projects/xfs/"
groups=('base')
depends=('util-linux-ng>=2.16')
options=('!makeflags' '!libtool')
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-${pkgver}.tar.gz)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export OPTIMIZER="-march=${CARCH/_/-} -O1"
  export DEBUG=-DNDEBUG
  make || return 1
}
package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DIST_ROOT="${pkgdir}" install install-dev || return 1
}
md5sums=('74081975f148bcabcab26c4c3496ede9')