Files

41 lines
995 B
Bash
Raw Permalink Normal View History

2022-09-15 00:24:08 +02:00
#!/bin/bash
# this runs as root.
2022-11-29 10:53:36 +01:00
function makeAur(
2022-09-15 00:24:08 +02:00
cd ~builduser
2022-11-29 10:53:36 +01:00
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" .
2022-09-15 00:24:08 +02:00
done
2022-11-29 10:53:36 +01:00
for i in /usr/local/cache/*zip; do
if test -f $i; then
ln -s "$i" .
fi
2022-09-15 00:24:08 +02:00
done
su builduser -c makepkg
find . -type f -name '*zst' -exec ln "{}" /usr/local/cache ';'
2022-11-29 10:53:36 +01:00
)
# 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
2022-09-21 11:49:10 +02:00
pacman -U --noconfirm /usr/local/cache/*zst
2022-11-29 10:53:36 +01:00