2018-01-24 21:48:10 +01:00
|
|
|
include_pkg() {
|
2018-02-15 23:47:54 +01:00
|
|
|
PKGNAME="$1" # globally visible package name
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-05-06 17:23:31 +02:00
|
|
|
unset -f build deploy prepare check_update
|
2018-01-24 12:52:41 +01:00
|
|
|
unset -v VERSION TARBALL URL SRCDIR SHA256SUM DEPENDS
|
2018-02-15 23:47:54 +01:00
|
|
|
source "$SCRIPTDIR/pkg/$PKGNAME/build"
|
2018-01-24 21:48:10 +01:00
|
|
|
}
|
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-02-15 23:47:54 +01:00
|
|
|
include_pkg "$DEP"
|
2018-01-24 21:48:10 +01:00
|
|
|
dependencies
|
2018-01-24 12:52:41 +01:00
|
|
|
done
|
2017-12-09 21:51:48 +01:00
|
|
|
fi
|
|
|
|
}
|