# Maintainer: Natanael Copa pkgname=attr pkgver=2.4.46 pkgrel=2 pkgdesc="Utilities for managing filesystem extended attributes" url="http://acl.bestbits.at/" arch="all" license="LGPL" depends= makedepends="libtool autoconf automake bash gzip" subpackages="$pkgname-dev $pkgname-doc libattr" source="http://download.savannah.gnu.org/releases-noredirect/attr/attr-$pkgver.src.tar.gz attr-2.4.32-build.patch " prepare() { cd "$srcdir"/attr-$pkgver for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ include/builddefs.in } 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 -j1 LIBTOOL=$PWD/libtool DESTDIR="$pkgdir" \ install install-lib install-dev || return 1 # provided by man-pages rm -r "$pkgdir"/usr/share/man/man2 \ "$pkgdir"/usr/lib/*.a \ "$pkgdir"/lib/*.la \ "$pkgdir"/usr/lib/*.la || return 1 } libattr() { pkgdesc="Dynamic library for extended attribute support" replaces="attr" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/lib*.so.* "$subpkgdir"/lib/ } md5sums="db557c17fdfa4f785333ecda08654010 attr-2.4.46.src.tar.gz 6d6bd02aca84ec61516d6700a87bbff7 attr-2.4.32-build.patch"