2018-01-24 21:48:10 +01:00
|
|
|
include_pkg() {
|
|
|
|
PKGDIR="$1" # globally visible package directory
|
|
|
|
PKGNAME="$2" # globally visible package name
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-01-24 12:52:41 +01:00
|
|
|
unset -f build deploy prepare
|
|
|
|
unset -v VERSION TARBALL URL SRCDIR SHA256SUM DEPENDS
|
2018-01-24 21:48:10 +01:00
|
|
|
source "$SCRIPTDIR/$PKGDIR/$PKGNAME/build"
|
|
|
|
}
|
2018-01-24 12:52:41 +01:00
|
|
|
|
2018-01-24 21:48:10 +01:00
|
|
|
dependencies() {
|
2018-01-24 12:52:41 +01:00
|
|
|
local depends="$DEPENDS"
|
|
|
|
|
|
|
|
if [ ! -z "$depends" ]; then
|
|
|
|
for DEP in $depends; do
|
2018-01-24 21:48:10 +01:00
|
|
|
echo "$PKGNAME $DEP"
|
2018-01-24 12:52:41 +01:00
|
|
|
done
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-01-24 12:52:41 +01:00
|
|
|
for DEP in $depends; do
|
2018-01-24 21:48:10 +01:00
|
|
|
include_pkg "$PKGDIR" "$DEP"
|
|
|
|
dependencies
|
2018-01-24 12:52:41 +01:00
|
|
|
done
|
2017-12-09 21:51:48 +01:00
|
|
|
fi
|
|
|
|
}
|