2019-02-27 14:22:03 +01:00
|
|
|
include_pkg() {
|
|
|
|
PKGNAME="$1" # globally visible package name
|
|
|
|
|
2020-04-19 08:37:21 +02:00
|
|
|
unset -f build deploy download prepare check_update package
|
2019-02-27 14:22:03 +01:00
|
|
|
unset -v VERSION TARBALL URL SRCDIR SHA256SUM DEPENDS SUBPKG
|
2020-04-12 03:17:03 +02:00
|
|
|
source "$SCRIPTDIR/util/emptypkg.sh"
|
2019-02-27 14:22:03 +01:00
|
|
|
source "$SCRIPTDIR/pkg/$PKGNAME/build"
|
|
|
|
|
|
|
|
if [ -z "$SUBPKG" ]; then
|
|
|
|
SUBPKG="$PKGNAME"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2018-01-25 00:09:29 +01:00
|
|
|
run_pkg_command() {
|
2018-01-24 21:48:10 +01:00
|
|
|
local FUNCTION="$1"
|
2018-02-15 23:47:54 +01:00
|
|
|
local LOGFILE="$PKGLOGDIR/${PKGNAME}-${FUNCTION}.log"
|
2017-12-09 21:51:48 +01:00
|
|
|
local SRC="$PKGSRCDIR/$SRCDIR"
|
|
|
|
|
2018-02-18 17:46:06 +01:00
|
|
|
echo "$PKGNAME - $FUNCTION"
|
|
|
|
|
2018-02-16 18:45:25 +01:00
|
|
|
pushd "$PKGBUILDDIR" > /dev/null
|
2019-03-06 10:03:12 +01:00
|
|
|
$FUNCTION "$SRC" &>> "$LOGFILE" < /dev/null
|
2017-12-09 21:51:48 +01:00
|
|
|
popd > /dev/null
|
2019-03-05 16:19:55 +01:00
|
|
|
|
2019-03-06 21:22:03 +01:00
|
|
|
gzip -f "$LOGFILE"
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|