Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified: scripts/setup-archlinux.sh #4753

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions scripts/setup-archlinux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e -u

PACKAGES=""
Expand Down Expand Up @@ -43,9 +43,7 @@ PACKAGES+=" lua" # Needed to build luarocks package.
PACKAGES+=" python-recommonmark" # Needed for LLVM-8 documentation.
PACKAGES+=" jre8-openjdk-headless"

sudo pacman -Syq --noconfirm $PACKAGES

sudo mkdir -p /data/data/com.termux/files/usr
sudo chown -R $(whoami) /data
[ "$(id -u)" -eq 0 ] && pacman -Syq --noconfirm $PACKAGES || sudo pacman -Syq --noconfirm $PACKAGES
[ "$(id -u)" -ne 0 ] && sudo mkdir -p /data/data/com.termux/files/usr && sudo chown -R $(whoami) /data

echo "Please also install ncurses5-compat-libs and makedepend packages from the AUR before continuing"