diff --git a/srcpkgs/libcap/template b/srcpkgs/libcap/template index 154b61a3fc..326fd1a19d 100644 --- a/srcpkgs/libcap/template +++ b/srcpkgs/libcap/template @@ -1,7 +1,7 @@ # Template file for 'libcap' pkgname=libcap version=2.22 -revision=2 +revision=3 distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.bz2" short_desc="POSIX.1e capabilities library" maintainer="Juan RP " @@ -17,15 +17,13 @@ Add_dependency build perl Add_dependency build pam-devel Add_dependency build attr-devel -do_build() -{ +do_build() { sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)\/lib|LIBDIR=\$(FAKEROOT)/\$(lib)|g" \ Make.Rules make ${makejobs} } -do_install() -{ +do_install() { vmkdir lib vmkdir usr/lib if [ "$XBPS_MACHINE" = "x86_64" ]; then @@ -35,6 +33,6 @@ do_install() rm -f ${DESTDIR}/lib64 vinstall pam_cap/capability.conf 644 etc/security - cd ${DESTDIR}/usr/lib && ln -sf ../../lib/libcap.so . - chmod 755 ${DESTDIR}/lib/libcap.so.* + vmove "lib/*.so*" usr/lib + chmod 755 ${DESTDIR}/usr/lib/libcap.so.* }