hooks/post-install/01-create-xbps-vpkg-files: update for xbps>=0.33.
This commit is contained in:
parent
0450b04edc
commit
d7c0bcec4f
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ hook() {
|
|||
_tmpf=$(mktemp) || msg_error "$pkgver: failed to create tempfile.\n"
|
||||
echo "# Virtual packages provided by '${pkgname}':" >>${_tmpf}
|
||||
for f in ${provides}; do
|
||||
echo "virtual-package ${pkgname} { targets = \"${f}\" }" >>${_tmpf}
|
||||
echo "virtualpkg=${f}:${pkgname}" >>${_tmpf}
|
||||
done
|
||||
install -Dm644 ${_tmpf} ${PKGDESTDIR}/etc/xbps/virtualpkg.d/${pkgname}.conf
|
||||
install -Dm644 ${_tmpf} ${PKGDESTDIR}/etc/xbps/virtualpkg.d/${pkgname}.vpkg
|
||||
rm -f ${_tmpf}
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue