summaryrefslogtreecommitdiff
path: root/core/attr/PKGBUILD
blob: f8b942259a81d1ad1e351d987a14ce7b767d46c5 (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
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 115738 2011-03-20 22:30:28Z allan $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=attr
pkgver=2.4.44
pkgrel=3
pkgdesc="Extended attribute support library for ACL support"
arch=('i686' 'x86_64')
url="http://oss.sgi.com/projects/xfs/"
license=('LGPL')
depends=('glibc') 
makedepends=('gettext')
replaces=('xfsattr')
provides=('xfsattr')
conflicts=('xfsattr')
options=('!libtool')
source=(ftp://ftp.archlinux.org/other/attr/attr-${pkgver}.src.tar.gz)
sha256sums=('e01fa00686072a02dddf994e6217be950f51c1dc0852ad2e210c48b6e8de793a')

build() {
  cd $srcdir/attr-$pkgver 
  
  # prevent binaries being owned by nobody:nobody
  sed -i 's#-o $(PKG_USER) -g $(PKG_GROUP)##' include/buildmacros
  
  autoconf
  ./configure --prefix=/usr 
  sed -i -e 's/man2//g' man/Makefile
  make
}

package() {
  cd $srcdir/attr-$pkgver
  make prefix=${pkgdir}/usr install install-lib install-dev

  # tidy up
  cd "${pkgdir}"

  install -dm755 lib
  mv -v usr/lib/libattr.so* lib/
  ln -sv ../../lib/libattr.so.1 usr/lib/libattr.so

  mv -v usr/libexec/libattr.{a,la} usr/lib/
  rm -rvf usr/libexec
}