#!/bin/bash # this runs as root. function makeAur( cd ~builduser pkg="$1" git clone https://aur.archlinux.org/$pkg.git cd "$pkg" commit=$2 if test -n "$commit" then git checkout $commit fi chown builduser:builduser -R . .git for i in /usr/local/cache/$pkg*zst; do ln -s "$i" . done for i in /usr/local/cache/*zip; do if test -f $i; then ln -s "$i" . fi done su builduser -c makepkg find . -type f -name '*zst' -exec ln "{}" /usr/local/cache ';' ) # 28c makeAur android-ndk 0bea9627ace780a7911d27d8aa226aa41fad255e # 36.0.0 makeAur android-sdk-platform-tools 22b4fc7b2ad0525b69a872b9ae0818dc5dd71506 # r35 makeAur android-sdk-build-tools cae0bf43f31d3d40bceb9b46f1eac7a825f58db1 # r35 makeAur android-sdk-cmdline-tools-latest cae0bf43f31d3d40bceb9b46f1eac7a825f58db1 # r36-r02 makeAur android-platform 0be325f50ffdb121de4a247faf31738f7574cea8 pacman -U --noconfirm /usr/local/cache/*zst