summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/xfsprogs/PKGBUILD
blob: 9750021e3b6dc2813e0b4ab87f7fd07e4440a9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 3596 2008-06-25 23:37:31Z paul $
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=xfsprogs
pkgver=2.9.8
pkgrel=10
pkgdesc="XFS filesystem utilities"
arch=(i686 x86_64)
license=('LGPL')
url="http://oss.sgi.com/projects/xfs/"
groups=('base')
depends=(e2fsprogs)
options=('!makeflags' '!libtool')
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/xfsprogs_${pkgver}-1.tar.gz)
md5sums=('f32ab3282c3e02ce25128f7a6c2d5157')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  #sed -i '/autoconf/d' Makefile

 if [ "$CARCH" == "x86_64" ]; then
     export OPTIMIZER="-march=x86-64 -O1"    	 # for x86_64
  else  export OPTIMIZER="-march=${CARCH} -O1"   # for i686
fi

  export DEBUG=-DNDEBUG
  make || return 1
  make DIST_ROOT=${startdir}/pkg install install-dev
}