summaryrefslogtreecommitdiff
path: root/multilib/lib32-attr/PKGBUILD
blob: c802e5b3b0703781e55ccd1eabe215e340cbba26 (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
36
# $Id: PKGBUILD 54388 2011-08-17 20:57:53Z lcarlier $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
_pkgbasename=attr
pkgname=lib32-$_pkgbasename
pkgver=2.4.46
pkgrel=1
pkgdesc="Extended attribute support library for ACL support (32-bit)"
arch=(x86_64)
url="http://savannah.nongnu.org/projects/attr"
license=('LGPL')
depends=('lib32-glibc' $_pkgbasename) 
makedepends=('gcc-multilib' 'gettext')
options=('!libtool')
source=(http://download.savannah.gnu.org/releases/attr/attr-${pkgver}.src.tar.gz)
sha256sums=('dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f')

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

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

  export INSTALL_USER=root INSTALL_GROUP=root
  ./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 \
  make DIST_ROOT="${pkgdir}" \
    install-lib install-dev

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