Files
mini-ndn/util/pkgdep/ubuntu.sh
T
Junxiao Shi 1e720875d2 install: fix git error and support Ubuntu 22.04
refs #5204

Change-Id: Ic6e2ce789746a18cdb8b97e5a4e8175a89ad2e8d
2022-08-01 14:53:33 -07:00

46 lines
1.4 KiB
Bash

# -*- Mode:bash; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
# Copyright (C) 2015-2022, The University of Memphis,
# Arizona Board of Regents,
# Regents of the University of California.
#
# This file is part of Mini-NDN.
# See AUTHORS.md for a complete list of Mini-NDN authors and contributors.
#
# Mini-NDN is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Mini-NDN is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Mini-NDN, e.g., in COPYING.md file.
# If not, see <http://www.gnu.org/licenses/>.
if [[ $(expr $VERSION_ID '<' 20.04) == 1 ]]; then
cat <<EOT
Ubuntu 20.04 or newer is required
Installation on older versions may fail
EOT
fi
source "$PKGDEPDIR/debian-like.sh"
if [[ $VERSION_ID == '20.04' ]]; then
APT_PKGS+=(
libigraph0-dev
)
else
APT_PKGS+=(
libigraph-dev
)
fi
if [[ $VERSION_ID == '20.04' ]] || [[ $VERSION_ID == '21.10' ]]; then
PPA_AVAIL=1
fi