# $Id: PKGBUILD 26569 2009-02-09 18:40:22Z paul $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=xfsdump
pkgver=3.0.0
pkgrel=1
pkgdesc="Additional XFS filesystem utilities"
arch=(i686 x86_64)
license=('LGPL')
url="http://oss.sgi.com/projects/xfs/"
depends=('xfsprogs>=3.0.0' 'attr>=2.4.39' 'acl>=2.2.45' 'dmapi')
options=('!makeflags')
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/xfsdump-${pkgver}.tar.gz)
md5sums=('')
options=(!emptydirs)

build() {
  cd $startdir/src/xfsdump-$pkgver
  autoconf
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
  # fixes
  rm -f $startdir/pkg/usr/lib/*.la
  rm -f $startdir/pkg/usr/bin/{xfsdump,xfsrestore}
}