Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/packages.conf
blob: 55c7a30cbb809ce2e8626f0453913170c34cd519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
GLUCOSE="sugar sugar-artwork sugar-base sugar-datastore sugar-presence-service sugar-toolkit"
FRUCTOSE="browse calculate chat imageviewer paint pippy read"
PACKAGES="${GLUCOSE} ${FRUCTOSE}"

parse_package_info() {
    OLDIFS="$IFS" IFS=":"
    read upstream_name debian_name upstream_place <<< "$1"
    IFS="$OLDIFS"

    if [ -z "${debian_name}" ] ; then
        if egrep -q "(^| )${upstream_name}( |:|\$)" <<< "${FRUCTOSE}" ; then
            debian_name="sugar-${upstream_name}-activity"
        else
            debian_name="${upstream_name}"
        fi
    fi

    debian_repo=git://git.debian.org/git/collab-maint/"${debian_name}"

    case "${upstream_place}" in
        olpc)
            upstream_repo=git://dev.laptop.org/projects/"${upstream_name}"
            ;;
        '')
            upstream_repo=git://git.sugarlabs.org/projects/"${upstream_name}"/mainline.git
            ;;
    esac
}