# Maintainer: Natanael Copa pkgname=attr pkgver=2.4.44 _ver=2.4.44 pkgrel=6 pkgdesc="Extended attribute support library for ACL support" url="http://oss.sgi.com/projects/xfs/" arch="x86 x86_64" license="LGPL" depends= makedepends="libtool autoconf automake bash gzip" subpackages="$pkgname-dev $pkgname-doc" source="ftp://ftp.archlinux.org/other/attr/attr-${pkgver}.src.tar.gz" prepare() { cd "$srcdir"/attr-$pkgver sed -i -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ include/builddefs.in autoconf || return 1 } build() { cd "$srcdir"/attr-$pkgver unset PLATFORM #184564 export OPTIMIZER="${CFLAGS}" export DEBUG=-DNDEBUG ./configure \ --prefix=/ \ --exec-prefix=/ \ --sbindir=/bin \ --bindir=/usr/bin \ --libdir=/lib \ --libexecdir=/usr/lib \ --enable-lib64=yes \ --includedir=/usr/include \ --mandir=/usr/share/man \ --datadir=/usr/share \ --disable-gettext || return 1 make LIBTOOL="libtool --tag=CC" || return 1 } package() { cd "$srcdir"/attr-$pkgver make DIST_ROOT="$pkgdir" install install-lib install-dev # provided by man-pages rm -fr "$pkgdir"/usr/share/man/man2 } md5sums="d132c119831c27350e10b9f885711adc attr-2.4.44.src.tar.gz"