void-packages/srcpkgs/attr/template

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"
revision=1
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
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
}