summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/xfsprogs/PKGBUILD
blob: 2cb53eb85fa2efaa7b89891edcfd07cf59ce12a9 (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 12356 2008-09-13 21:11:54Z paul $
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=xfsprogs
pkgver=2.10.1
pkgrel=1
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=('8f0410aa8cfea0936969a3aab447009c')

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
}