core/attr/PKGBUILD

46 lines
1.2 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=attr
pkgver=2.4.46
pkgrel=2
pkgdesc="Extended attribute support library for ACL support"
arch=(i686 x86_64)
url="http://oss.sgi.com/projects/xfs/"
license=('LGPL')
groups=('base')
depends=('glibc')
makedepends=('gettext')
replaces=('xfsattr')
provides=('xfsattr')
conflicts=('xfsattr')
options=('!libtool')
source=(http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.src.tar.gz)
sha256sums=('dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f')
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
export INSTALL_USER=root INSTALL_GROUP=root
./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib
make
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DIST_ROOT="${pkgdir}" install install-lib install-dev
# tidy up
rm -f "${pkgdir}"/lib/libattr.a
chmod 0755 "${pkgdir}"/lib/libattr.so.*.*.*
# remove conflicting manpages
rm -rf "${pkgdir}"/usr/share/man/man2
}