xbps-src: added new funcs to install files into DESTDIR.

vcopy <files> <targetdir>
	Executes cp -a <files> ${DESTDIR}/<targetdir>

vinstall <file> <mode> <targetdir> <targetfile>
	4th argument is optional.
	Executed install -Dm<mode> <file> ${DESTDIR}/<targetdir>/<file>

vmkdir <dir> <mode>
	Executed install -dm<mode> ${DESTDIR}/<dir>
This commit is contained in:
Juan RP 2011-07-02 10:49:22 +02:00
parent cbdfc216de
commit 75d55258a5
2 changed files with 91 additions and 0 deletions

View file

@ -284,6 +284,8 @@ set_tmpl_common_vars()
{
[ -z "$pkgname" ] && return 1
. ${XBPS_SHUTILSDIR}/install_files.sh
FILESDIR=$XBPS_SRCPKGDIR/$pkgname/files
PATCHESDIR=$XBPS_SRCPKGDIR/$pkgname/patches
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version}