mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 18:43:51 +02:00
Introduce $revision for use in templates.
--HG-- extra : convert_revision : c57cd2a6705e04be838a02665d0ea11f525ce263
This commit is contained in:
parent
f27cf5c2af
commit
47d8d684aa
1 changed files with 6 additions and 1 deletions
|
@ -65,7 +65,7 @@ reset_tmpl_vars()
|
||||||
make_build_target configure_script noextract \
|
make_build_target configure_script noextract \
|
||||||
pre_configure pre_build pre_install \
|
pre_configure pre_build pre_install \
|
||||||
post_configure post_build post_install \
|
post_configure post_build post_install \
|
||||||
make_install_target version \
|
make_install_target version revision _revset \
|
||||||
sgml_catalogs xml_catalogs xml_entries sgml_entries \
|
sgml_catalogs xml_catalogs xml_entries sgml_entries \
|
||||||
build_depends libtool_fixup_la_stage no_fixup_libtool \
|
build_depends libtool_fixup_la_stage no_fixup_libtool \
|
||||||
disable_parallel_build run_depends cross_compiler \
|
disable_parallel_build run_depends cross_compiler \
|
||||||
|
@ -208,6 +208,11 @@ set_tmpl_common_vars()
|
||||||
{
|
{
|
||||||
[ -z "$pkgname" ] && return 1
|
[ -z "$pkgname" ] && return 1
|
||||||
|
|
||||||
|
if [ -z "${_revset}" -a -n "$revision" ]; then
|
||||||
|
_revset=1
|
||||||
|
version="${version}_${revision}"
|
||||||
|
fi
|
||||||
|
|
||||||
FILESDIR=${XBPS_TEMPLATESDIR}/${pkgname}/files
|
FILESDIR=${XBPS_TEMPLATESDIR}/${pkgname}/files
|
||||||
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version}
|
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||||
SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||||
|
|
Loading…
Add table
Reference in a new issue