lib32/lib32-attr/PKGBUILD

39 lines
1.0 KiB
Bash

# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=attr
pkgname=lib32-$_pkgbasename
pkgver=2.4.44
pkgrel=1
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}
}