blob: 456ce40acb2d20d0ef5bb38464cb7e83893aaf24 [file] [log] [blame]
Junxiao Shi48ada892021-11-04 09:02:21 -06001# -*- Mode:bash; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2#
Junxiao Shi1e720872022-07-19 10:24:12 -06003# Copyright (C) 2015-2022, The University of Memphis,
Junxiao Shi48ada892021-11-04 09:02:21 -06004# Arizona Board of Regents,
5# Regents of the University of California.
6#
7# This file is part of Mini-NDN.
8# See AUTHORS.md for a complete list of Mini-NDN authors and contributors.
9#
10# Mini-NDN is free software: you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation, either version 3 of the License, or
13# (at your option) any later version.
14#
15# Mini-NDN is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with Mini-NDN, e.g., in COPYING.md file.
22# If not, see <http://www.gnu.org/licenses/>.
23
24if [[ $(expr $VERSION_ID '<' 20.04) == 1 ]]; then
25 cat <<EOT
26Ubuntu 20.04 or newer is required
27Installation on older versions may fail
28EOT
29fi
30
31source "$PKGDEPDIR/debian-like.sh"
32
Junxiao Shi1e720872022-07-19 10:24:12 -060033if [[ $VERSION_ID == '20.04' ]]; then
34 APT_PKGS+=(
35 libigraph0-dev
36 )
37else
38 APT_PKGS+=(
39 libigraph-dev
40 )
41fi
Junxiao Shi48ada892021-11-04 09:02:21 -060042
Junxiao Shi1e720872022-07-19 10:24:12 -060043if [[ $VERSION_ID == '20.04' ]] || [[ $VERSION_ID == '21.10' ]]; then
44 PPA_AVAIL=1
45fi