xbps-src: improve the 'info' target.
This commit is contained in:
parent
0474b11e7b
commit
2a31f296ac
1 changed files with 30 additions and 5 deletions
|
@ -37,23 +37,48 @@ info_tmpl()
|
||||||
echo "pkgname: $pkgname"
|
echo "pkgname: $pkgname"
|
||||||
echo "version: $version"
|
echo "version: $version"
|
||||||
[ -n "$revision" ] && echo "revision: $revision"
|
[ -n "$revision" ] && echo "revision: $revision"
|
||||||
for i in "${distfiles}"; do
|
for i in ${distfiles}; do
|
||||||
[ -n "$i" ] && echo "distfile: $i"
|
[ -n "$i" ] && echo "distfiles: $i"
|
||||||
done
|
done
|
||||||
[ -n "$checksum" ] && echo "checksum: $checksum"
|
for i in ${checksum}; do
|
||||||
|
[ -n "$i" ] && echo "checksum: $i"
|
||||||
|
done
|
||||||
|
[ -n "$noarch" ] && echo "noarch: yes"
|
||||||
echo "maintainer: $maintainer"
|
echo "maintainer: $maintainer"
|
||||||
echo "build_style: $build_style"
|
echo "build_style: $build_style"
|
||||||
|
for i in ${configure_args}; do
|
||||||
|
[ -n "$i" ] && echo "configure_args: $i"
|
||||||
|
done
|
||||||
echo "short_desc: $short_desc"
|
echo "short_desc: $short_desc"
|
||||||
|
for i in ${subpackages}; do
|
||||||
|
[ -n "$i" ] && echo "subpackages: $i"
|
||||||
|
done
|
||||||
|
for i in ${conf_files}; do
|
||||||
|
[ -n "$i" ] && echo "conf_files: $i"
|
||||||
|
done
|
||||||
|
for i in ${replaces}; do
|
||||||
|
[ -n "$i" ] && echo "replaces: $i"
|
||||||
|
done
|
||||||
|
for i in ${conflicts}; do
|
||||||
|
[ -n "$i" ] && echo "conflicts: $i"
|
||||||
|
done
|
||||||
echo "$long_desc"
|
echo "$long_desc"
|
||||||
echo
|
echo
|
||||||
. $XBPS_SHUTILSDIR/builddep_funcs.sh
|
. $XBPS_SHUTILSDIR/builddep_funcs.sh
|
||||||
check_build_depends_pkg
|
check_build_depends_pkg
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "This package requires the following dependencies to be built:"
|
echo "This package requires the following build-time dependencies:"
|
||||||
for i in ${build_depends}; do
|
for i in ${build_depends}; do
|
||||||
echo " $i"
|
echo " $i"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
if [ -n "${run_depends}" ]; then
|
||||||
|
echo
|
||||||
|
echo "This package requires the folloring run-time dependencies:"
|
||||||
|
for i in ${run_depends}; do
|
||||||
|
echo " $i"
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue