2014-04-09 16:40:27 +02:00
|
|
|
# vim: set ts=4 sw=4 et:
|
2014-03-22 12:31:42 +01:00
|
|
|
|
|
|
|
show_pkg() {
|
2014-04-09 16:40:27 +02:00
|
|
|
local i=
|
2014-03-22 12:31:42 +01:00
|
|
|
|
2014-04-09 16:40:27 +02:00
|
|
|
echo "pkgname: $pkgname"
|
|
|
|
echo "version: $version"
|
|
|
|
echo "revision: $revision"
|
|
|
|
for i in ${distfiles}; do
|
|
|
|
[ -n "$i" ] && echo "distfiles: $i"
|
|
|
|
done
|
|
|
|
for i in ${checksum}; do
|
|
|
|
[ -n "$i" ] && echo "checksum: $i"
|
|
|
|
done
|
2015-12-03 10:04:16 +01:00
|
|
|
for i in ${archs}; do
|
|
|
|
[ -n "$i" ] && echo "archs: $i"
|
|
|
|
done
|
2014-04-09 16:40:27 +02:00
|
|
|
echo "maintainer: $maintainer"
|
|
|
|
[ -n "$homepage" ] && echo "Upstream URL: $homepage"
|
|
|
|
[ -n "$license" ] && echo "License(s): $license"
|
|
|
|
[ -n "$build_style" ] && echo "build_style: $build_style"
|
2019-01-21 03:51:21 +01:00
|
|
|
for i in $build_helper; do
|
|
|
|
[ -n "$i" ] && echo "build_helper: $i"
|
|
|
|
done
|
2014-04-09 16:40:27 +02:00
|
|
|
for i in ${configure_args}; do
|
|
|
|
[ -n "$i" ] && echo "configure_args: $i"
|
|
|
|
done
|
|
|
|
echo "short_desc: $short_desc"
|
|
|
|
for i in ${subpackages}; do
|
|
|
|
[ -n "$i" ] && echo "subpackages: $i"
|
|
|
|
done
|
2017-11-29 13:19:21 +01:00
|
|
|
set -f
|
2014-04-09 16:40:27 +02:00
|
|
|
for i in ${conf_files}; do
|
|
|
|
[ -n "$i" ] && echo "conf_files: $i"
|
|
|
|
done
|
2017-11-29 13:19:21 +01:00
|
|
|
set +f
|
2014-04-09 16:40:27 +02:00
|
|
|
for i in ${replaces}; do
|
|
|
|
[ -n "$i" ] && echo "replaces: $i"
|
|
|
|
done
|
|
|
|
for i in ${provides}; do
|
|
|
|
[ -n "$i" ] && echo "provides: $i"
|
|
|
|
done
|
|
|
|
for i in ${conflicts}; do
|
|
|
|
[ -n "$i" ] && echo "conflicts: $i"
|
|
|
|
done
|
|
|
|
[ -n "$long_desc" ] && echo "long_desc: $long_desc"
|
2016-03-06 22:52:35 +01:00
|
|
|
|
|
|
|
return 0
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_deps() {
|
2014-04-09 16:40:27 +02:00
|
|
|
[ -f "${PKGDESTDIR}/rdeps" ] && cat ${PKGDESTDIR}/rdeps
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_files() {
|
2014-04-09 16:40:27 +02:00
|
|
|
[ -d ${PKGDESTDIR} ] && find ${PKGDESTDIR} -print
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
2015-04-16 08:38:32 +02:00
|
|
|
show_avail() {
|
|
|
|
check_pkg_arch "$XBPS_CROSS_BUILD" 2>/dev/null
|
|
|
|
}
|
|
|
|
|
2019-01-26 20:29:36 +01:00
|
|
|
show_pkg_build_depends() {
|
2015-04-26 08:32:02 +02:00
|
|
|
local f x _pkgname _srcpkg _dep found result
|
2019-01-26 20:29:36 +01:00
|
|
|
local _deps="$1"
|
2015-03-26 04:18:42 +01:00
|
|
|
|
|
|
|
result=$(mktemp || exit 1)
|
|
|
|
|
2014-04-09 16:40:27 +02:00
|
|
|
# build time deps
|
2019-01-26 20:29:36 +01:00
|
|
|
for f in ${_deps}; do
|
2015-02-28 01:46:38 +01:00
|
|
|
# ignore virtual deps
|
2016-04-27 20:56:55 +02:00
|
|
|
local _rpkg="${f%\?*}"
|
|
|
|
local _vpkg="${f#*\?}"
|
|
|
|
|
|
|
|
# ignore virtual dependencies
|
|
|
|
if [ "${_rpkg}" != "${_vpkg}" ]; then
|
|
|
|
f="${_vpkg}"
|
2015-02-28 01:46:38 +01:00
|
|
|
fi
|
2015-04-07 12:33:42 +02:00
|
|
|
unset found
|
2015-02-28 00:13:42 +01:00
|
|
|
# check for subpkgs
|
|
|
|
for x in ${subpackages}; do
|
2015-02-28 01:46:38 +01:00
|
|
|
_pkgname="$($XBPS_UHELPER_CMD getpkgdepname $f 2>/dev/null)"
|
2015-02-28 00:13:42 +01:00
|
|
|
if [ -z "${_pkgname}" ]; then
|
2015-02-28 01:46:38 +01:00
|
|
|
_pkgname="$($XBPS_UHELPER_CMD getpkgname $f 2>/dev/null)"
|
2015-02-28 00:13:42 +01:00
|
|
|
fi
|
|
|
|
if [ "${_pkgname}" = "$x" ]; then
|
|
|
|
found=1
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if [ -n "$found" ]; then
|
|
|
|
continue
|
|
|
|
fi
|
2015-04-07 12:33:42 +02:00
|
|
|
_pkgname="$($XBPS_UHELPER_CMD getpkgdepname $f 2>/dev/null)"
|
|
|
|
if [ -z "${_pkgname}" ]; then
|
|
|
|
_pkgname="$($XBPS_UHELPER_CMD getpkgname $f 2>/dev/null)"
|
|
|
|
fi
|
|
|
|
if [ -z "${_pkgname}" ]; then
|
|
|
|
_pkgname="$f"
|
|
|
|
fi
|
2015-11-19 08:32:47 +01:00
|
|
|
_pkgname=${_pkgname/-32bit}
|
2015-04-26 08:32:02 +02:00
|
|
|
_srcpkg=$(basename $(readlink -f ${XBPS_SRCPKGDIR}/${_pkgname}))
|
|
|
|
echo "${_srcpkg}" >> $result
|
2014-04-09 16:40:27 +02:00
|
|
|
done
|
2015-03-26 04:18:42 +01:00
|
|
|
sort -u $result
|
|
|
|
rm -f $result
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
2019-01-26 20:29:36 +01:00
|
|
|
show_pkg_build_deps() {
|
|
|
|
setup_pkg_depends
|
|
|
|
show_pkg_build_depends "${host_build_depends} ${build_depends} ${run_depends}"
|
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_hostmakedepends() {
|
|
|
|
setup_pkg_depends
|
|
|
|
show_pkg_build_depends "${host_build_depends}"
|
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_makedepends() {
|
|
|
|
setup_pkg_depends
|
|
|
|
show_pkg_build_depends "${build_depends}"
|
|
|
|
}
|
2014-03-22 12:31:42 +01:00
|
|
|
|
2014-06-30 11:32:07 +02:00
|
|
|
show_pkg_build_options() {
|
|
|
|
local f opt desc
|
|
|
|
|
|
|
|
[ -z "$PKG_BUILD_OPTIONS" ] && return 0
|
|
|
|
|
|
|
|
source $XBPS_COMMONDIR/options.description
|
|
|
|
msg_normal "$pkgver: the following build options are set:\n"
|
|
|
|
for f in ${PKG_BUILD_OPTIONS}; do
|
|
|
|
opt="${f#\~}"
|
|
|
|
eval desc="\${desc_option_${opt}}"
|
|
|
|
if [[ ${f:0:1} == '~' ]]; then
|
2014-10-28 10:15:58 +01:00
|
|
|
echo " $opt: $desc (OFF)"
|
2014-06-30 11:32:07 +02:00
|
|
|
else
|
2014-10-30 07:09:33 +01:00
|
|
|
printf " "
|
2014-06-30 11:32:07 +02:00
|
|
|
msg_normal_append "$opt: "
|
|
|
|
printf "$desc (ON)\n"
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
|
|
|
done
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_shlib_provides() {
|
2014-04-09 16:40:27 +02:00
|
|
|
[ -f "${PKGDESTDIR}/shlib-provides" ] && cat ${PKGDESTDIR}/shlib-provides
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
show_pkg_shlib_requires() {
|
2014-04-09 16:40:27 +02:00
|
|
|
[ -f "${PKGDESTDIR}/shlib-requires" ] && cat ${PKGDESTDIR}/shlib-requires
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|