void-packages/srcpkgs/attr/template
Juan RP 23dd7d008e Update build_style for all templates.
- There's no need to set build_style for custom-install (default).
- gnu_{configure,makefile} renamed to gnu-{configure,makefile}.
2011-10-24 14:14:47 +02:00

32 lines
1.1 KiB
Text

# Template file for 'attr'
pkgname=attr
version=2.4.46
distfiles="${NONGNU_SITE}/attr/attr-${version}.src.tar.gz"
build_style=gnu-configure
make_install_target="prefix=$XBPS_DESTDIR/$pkgname-$version/usr
PKG_MAN_DIR=$XBPS_DESTDIR/$pkgname-$version/usr/share/man install
install-lib install-dev"
short_desc="Extended attribute support library for ACL support"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://savannah.nongnu.org/projects/attr"
license="LGPL-2.1"
checksum=dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f
long_desc="
This package includes Extended attribute support library for ACL support."
keep_libtool_archives=yes
subpackages="attr-devel attr-progs"
Add_dependency build gettext
Add_dependency build gawk
Add_dependency run glibc
post_install()
{
mkdir ${DESTDIR}/lib
mv ${DESTDIR}/usr/lib/libattr.so.* ${DESTDIR}/lib
mv ${DESTDIR}/usr/libexec/libattr.* ${DESTDIR}/usr/lib
chmod 755 ${DESTDIR}/lib/libattr.so.*
rm -rf ${DESTDIR}/usr/libexec
rm -f ${DESTDIR}/usr/lib/libattr.so
cd ${DESTDIR}/usr/lib && ln -sf ../../lib/libattr.so.1 libattr.so
}