summaryrefslogtreecommitdiff
path: root/multilib/lib32-attr/PKGBUILD
blob: af308863a0b9345c8ec7f87956c014dd41a3512a (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
29
30
31
32
33
34
35
# $Id: PKGBUILD 26511 2010-09-15 22:28:05Z bluewind $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
_pkgbasename=attr
pkgname=lib32-$_pkgbasename
pkgver=2.4.44
pkgrel=4
pkgdesc="Extended attribute support library for ACL support (32-bit)"
arch=(x86_64)
url="http://oss.sgi.com/projects/xfs/"
license=('LGPL')
depends=('lib32-glibc' $_pkgbasename) 
makedepends=('gcc-multilib' 'gettext')
options=('!libtool')
source=(ftp://ftp.archlinux.org/other/attr/attr-${pkgver}.src.tar.gz)
sha256sums=('e01fa00686072a02dddf994e6217be950f51c1dc0852ad2e210c48b6e8de793a')

build() {
  cd $srcdir/attr-$pkgver 

  export CC="gcc -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  autoconf
  ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib32
  make 

  # Doesn't like building as non-root

  make prefix=${pkgdir}/usr \
    PKG_LIB_DIR=$pkgdir/usr/lib32 \
    PKG_DEVLIB_DIR=$pkgdir/usr/lib32 \
    install-lib install-dev

  rm -rf "${pkgdir}"/usr/{bin,include,share}
}