Newer
Older
'h') usage;;
'i') install_after="$install_after $OPTARG";;
'n') newname=$OPTARG;;
'p') PKGDEST=$OPTARG;;
'P') REPODEST=$OPTARG;;
'r') install_deps=1;;
'R') recursive=1;;
's') SRCDEST=$OPTARG;;
'u') upgrade=1
recursive=1;;
# If REPODEST is set then it will override the PKGDEST
if [ -n "$REPODEST" ]; then
PKGDEST="$REPODEST/$repo"
fi
# source the buildfile
if [ -z "$newname" ]; then
[ -f "$APKBUILD" ] || die "Could not find $APKBUILD (PWD=$PWD)"
. "$APKBUILD"
fi
# If we are handling a sub package then reset subpackages and install
origsubpackages="$subpackages"
controldir="$pkgbasedir"/.control.${subpkgname:-$pkgname}
if [ -z "$1" ] && [ -n "$newname" ]; then
set "newaport"
fi
fi
while [ $# -gt 0 ]; do
runpart $1
shift
done