2018-03-21 10:39:50 +01:00
|
|
|
#!/bin/bash
|
2018-10-03 20:15:39 -03:00
|
|
|
|
2018-03-21 10:39:50 +01:00
|
|
|
#
|
2018-03-29 12:14:52 +02:00
|
|
|
# This script is for Arch Linux to download and install XRDP+XORGXRDP
|
2018-03-21 10:39:50 +01:00
|
|
|
#
|
|
|
|
|
2018-10-03 20:15:39 -03:00
|
|
|
if [ $(id -u) -eq 0 ]; then
|
2018-03-21 10:39:50 +01:00
|
|
|
echo 'This script must be run as a non-root user, as building packages as root is unsupported.' >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-03-29 12:14:52 +02:00
|
|
|
###############################################################################
|
|
|
|
# Prepare by installing build tools.
|
|
|
|
#
|
|
|
|
# Partial upgrades aren't supported in arch.
|
|
|
|
sudo pacman -Syu --needed --noconfirm base base-devel git
|
|
|
|
|
2018-03-21 10:39:50 +01:00
|
|
|
# Create a build directory in tmpfs
|
2018-10-03 11:40:47 +02:00
|
|
|
TMPDIR=$(mktemp -d)
|
|
|
|
pushd $TMPDIR
|
2018-03-21 10:39:50 +01:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# XRDP
|
|
|
|
#
|
|
|
|
(
|
|
|
|
git clone https://aur.archlinux.org/xrdp.git
|
|
|
|
cd xrdp
|
|
|
|
makepkg -sri --noconfirm
|
|
|
|
)
|
|
|
|
###############################################################################
|
|
|
|
# XORGXRDP
|
|
|
|
# Devel version, because release version includes a bug crashing gnome-settings-daemon
|
|
|
|
(
|
|
|
|
git clone https://aur.archlinux.org/xorgxrdp-devel-git.git
|
|
|
|
cd xorgxrdp-devel-git
|
|
|
|
makepkg -sri --noconfirm
|
|
|
|
)
|
|
|
|
###############################################################################
|
|
|
|
|
2018-10-03 11:40:47 +02:00
|
|
|
#remove build directory
|
|
|
|
rm -rf $TMPDIR
|