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:
parent
cbdfc216de
commit
75d55258a5
2 changed files with 91 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue