xbps-src: copy pkg metadata files into XBPS_PKGMETADIR.

This commit is contained in:
Juan RP 2011-06-20 18:33:30 +02:00
parent 24617c38ee
commit cd099f626e

View file

@ -143,6 +143,23 @@ install_pkg()
return 1
fi
# Copy generated pkg metadata files into its metadata dir.
if [ ! -f ${DESTDIR}/files.plist ]; then
msg_error "${pkgname}: missing metadata files.plist!"
fi
cp -f ${DESTDIR}/files.plist ${XBPS_PKGMETADIR}/${pkgname}
if [ ! -f ${DESTDIR}/props.plist ]; then
msg_error "${pkgname}: missing metadata props.plist!"
fi
cp -f ${DESTDIR}/props.plist ${XBPS_PKGMETADIR}/${pkgname}
if [ -f ${DESTDIR}/INSTALL ]; then
install -m750 ${DESTDIR}/INSTALL \
${XBPS_PKGMETADIR}/${pkgname}
fi
if [ -f ${DESTDIR}/REMOVE ]; then
install -m750 ${DESTDIR}/REMOVE \
${XBPS_PKGMETADIR}/${pkgname}
fi
#
# Remove $wrksrc if -C not specified.
#
@ -161,7 +178,7 @@ install_pkg_with_binpkg()
msg_normal "Installing binary pkg: $pkgpattern\n"
${fakeroot_cmd} ${fakeroot_cmd_args} ${XBPS_BIN_CMD} \
-y install \""$pkgpattern\""
-Ay install \""$pkgpattern\""
return $?
}