summaryrefslogtreecommitdiffstats
path: root/abs/core/attr
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/attr')
-rw-r--r--abs/core/attr/PKGBUILD39
1 files changed, 20 insertions, 19 deletions
diff --git a/abs/core/attr/PKGBUILD b/abs/core/attr/PKGBUILD
index 5be563f..229f36f 100644
--- a/abs/core/attr/PKGBUILD
+++ b/abs/core/attr/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 82618 2010-06-15 04:05:25Z allan $
+# $Id$
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=attr
-pkgver=2.4.44
+pkgver=2.4.46
pkgrel=1
pkgdesc="Extended attribute support library for ACL support"
-arch=(i686 x86_64)
-url="http://oss.sgi.com/projects/xfs/"
+arch=('i686' 'x86_64')
+url="http://savannah.nongnu.org/projects/attr"
license=('LGPL')
depends=('glibc')
makedepends=('gettext')
@@ -13,24 +13,25 @@ replaces=('xfsattr')
provides=('xfsattr')
conflicts=('xfsattr')
options=('!libtool')
-source=(ftp://ftp.archlinux.org/other/attr/attr-${pkgver}.src.tar.gz)
-sha256sums=('e01fa00686072a02dddf994e6217be950f51c1dc0852ad2e210c48b6e8de793a')
+source=(http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.src.tar.gz)
+sha256sums=('dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f')
build() {
- cd $srcdir/attr-$pkgver
- autoconf
- ./configure --prefix=/usr
- sed -i -e 's/man2//g' man/Makefile
- make || return 1
- make prefix=${pkgdir}/usr install install-lib install-dev
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ export INSTALL_USER=root INSTALL_GROUP=root
+ ./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib
+ make
+}
- # tidy up
- cd "${pkgdir}"
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
- mkdir -v lib
- mv -v usr/lib/libattr.so* lib/
- ln -sv ../../lib/libattr.so.1 usr/lib/libattr.so
+ make DIST_ROOT="${pkgdir}" install install-lib install-dev
- mv -v usr/libexec/libattr.{a,la} usr/lib/
- rm -rvf usr/libexec
+ # tidy up
+ rm -f "${pkgdir}"/lib/libattr.a
+ chmod 0755 "${pkgdir}"/lib/libattr.so.*.*.*
+ # remove conflicting manpages
+ rm -rf "${pkgdir}"/usr/share/man/man2
}