Welcome to mirror list, hosted at ThFree Co, Russian Federation.

install_xorgxrdp_build_dependencies_with_apt.sh « scripts - github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1346a28549ed0e8f696bb2a7e2cea67ac60a51a0 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
set -eufx

if [ -z "${1:-}" ]; then
    # No arch specified
    ARCH=amd64
elif [ "${1#--}" != "$1" ]; then
    # First parameter starts with '--'
    ARCH=amd64
else
    ARCH=$1
    shift
fi

APT_EXTRA_ARGS="$@"

# common build tools for all architectures and feature sets
PACKAGES=" \
    xserver-xorg-core \
    xserver-xorg-dev \
    nasm \
    "

case "$ARCH"
in
    amd64)
        ;;
    i386)
        PACKAGES="$PACKAGES \
            gcc-multilib \
            "
        dpkg --add-architecture i386
        dpkg --print-architecture
        dpkg --print-foreign-architectures
        apt-get update
        ;;
    *)
        echo "unsupported architecture: $ARCH"
        exit 1;
        ;;
esac

apt-get update
apt-get -yq \
    --no-install-suggests \
    --no-install-recommends \
    $APT_EXTRA_ARGS \
    install $PACKAGES