mkpacman: use powerpill to not need root

This commit is contained in:
Phantop 2024-03-08 20:05:26 -05:00
parent 869c9666cf
commit 272ed9a1d5
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
. "$(dirname "$0")"/appmk
part0
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jre/hotspot/normal/eclipse
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jdk/hotspot/normal/eclipse
shift
ungz
mv "$DIR"/jdk*/* "$DIR"

View file

@ -6,5 +6,5 @@ aria2c "$LINK" -d "$DIR" -o mp3tag
7z x -y -o"$DIR" "$DIR"/mp3tag
mv "$DIR"/Mp3tag.exe "$DIR"/mp3tag
appa
sed -i '5s/ / wine64 /' "$DIR"/AppRun
sed -i '5s/ / wine /' "$DIR"/AppRun
part9

View file

@ -2,7 +2,7 @@
. "$(dirname "$0")"/appmk
part0
APP="$1"
sudo pacman -Sw --cachedir "$DIR" "$@"
powerpill -Sw --cachedir "$DIR" "$@"
parallel "tar xf {} -C$DIR" ::: "$DIR"/*.tar.zst
rm -f "$DIR"/*.tar.zst*
appb