xbps-src: new target: show-avail and returns 0 if pkg can be built.

This commit is contained in:
Juan RP 2015-04-16 08:38:32 +02:00
parent 6c6a6e5dad
commit d07d3a72c9
2 changed files with 12 additions and 1 deletions

View file

@ -47,10 +47,13 @@ show_pkg_files() {
[ -d ${PKGDESTDIR} ] && find ${PKGDESTDIR} -print
}
show_avail() {
check_pkg_arch "$XBPS_CROSS_BUILD" 2>/dev/null
}
show_pkg_build_deps() {
local f x _pkgname _dep found result
check_pkg_arch "$XBPS_CROSS_BUILD"
setup_pkg_depends
result=$(mktemp || exit 1)