59 lines
2.1 KiB
Bash
Executable File
59 lines
2.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
ARCH="$(uname -m)"
|
|
PACKAGE_BUILDER="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/make-aur-package.sh"
|
|
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
|
|
PPQT_PKGBUILD="https://git.linux-gaming.ru/Boria138/PortProtonQt/raw/branch/main/build-aux/PKGBUILD"
|
|
|
|
echo "Installing dependencies..."
|
|
echo "---------------------------------------------------------------"
|
|
pacman-key --init
|
|
pacman -Syy --noconfirm archlinux-keyring
|
|
echo "Installing dependencies..."
|
|
echo "---------------------------------------------------------------"
|
|
pacman-key --init
|
|
pacman -Syy --noconfirm archlinux-keyring
|
|
pacman -Syu --noconfirm \
|
|
cabextract \
|
|
curl \
|
|
perl-image-exiftool \
|
|
pyside6 \
|
|
python-babel \
|
|
python-beautifulsoup4 \
|
|
python-evdev \
|
|
python-numpy \
|
|
python-orjson \
|
|
python-pillow \
|
|
python-psutil \
|
|
python-pyudev \
|
|
python-rapidfuzz \
|
|
python-requests \
|
|
python-tqdm \
|
|
python-websocket-client \
|
|
unrar \
|
|
unzip \
|
|
xdg-utils \
|
|
wget
|
|
|
|
echo "Installing debloated packages..."
|
|
echo "---------------------------------------------------------------"
|
|
wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh
|
|
chmod +x ./get-debloated-pkgs.sh
|
|
./get-debloated-pkgs.sh --add-common --prefer-nano
|
|
|
|
echo "Installing AUR packages..."
|
|
echo "---------------------------------------------------------------"
|
|
wget --retry-connrefused --tries=30 "$PACKAGE_BUILDER" -O ./make-aur-package.sh
|
|
chmod +x ./make-aur-package.sh
|
|
|
|
./make-aur-package.sh icoextract
|
|
./make-aur-package.sh python-vdf
|
|
|
|
echo "Building PortProtonQt from PKGBUILD..."
|
|
echo "---------------------------------------------------------------"
|
|
wget --retry-connrefused --tries=30 "$PPQT_PKGBUILD" -O ./PKGBUILD
|
|
makepkg -si --noconfirm
|
|
|
|
pacman -Q portprotonqt | awk '{print $2; exit}' > ~/version
|