1
0
Fork 0
mirror of https://github.com/Luzifer/archrepo.git synced 2024-11-09 10:00:04 +00:00

Add list of packages to maintain

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-07-15 23:18:52 +02:00
parent 7390831609
commit 27cbe63ba0
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 55 additions and 3 deletions

40
aur-packages Normal file
View file

@ -0,0 +1,40 @@
adobe-base-14-fonts
anydesk-bin
babel-eslint
brother-ql500
consul-bin
direnv
dust
envrun
google-chrome
google-chrome-beta
google-chrome-dev
google-cloud-sdk
gorun
hfsprogs
ltwheelconf-git
madonctl
mpd-mpris
nerd-fonts-dejavu-complete
obs-linuxbrowser-bin
obs-v4l2sink
peco
platformio
redis-desktop-manager
reg
repoctl
samsung-printers
scrcpy
spotify
ssh-audit
steamcmd
steam-fonts
ttf-tahoma
ttf-windows
usbtop
vault2env
vault-bin
wrk
xflux
yay
yubikey-full-disk-encryption-git

View file

@ -4,5 +4,8 @@ https://github.com/luzifer-aur/luzifer.git
# arch-update
https://github.com/Luzifer/arch-update.git
# getxkblayout
https://gist.github.com/dccae45747a1dad41f011a01c75296a3.git
# vim-go-tools
https://github.com/luzifer-aur/vim-go-tools.git

View file

@ -14,19 +14,28 @@ join_by() {
declare -A local_versions
declare -A aur_versions
IFS=$'\n'
database=$(find . -maxdepth 1 -mindepth 1 -name '*.db.tar.xz' -or -name '*.db.tar.zst')
aur_query=("https://aur.archlinux.org/rpc/?v=5&type=info")
step "Collecting local package versions..."
# Prime the local_versions array from the package list
for package in $(<aur-packages); do
local_versions[${package}]=0.0.0
done
# Update versions in local_versions from database entries
known_packages=$(tar -tf ${database} | grep -v /desc | sed -E 's@^(.*)-([^-]+-[0-9]+)/$@\1 \2@')
IFS=$'\n'
for package in ${known_packages}; do
name=$(echo "${package}" | cut -d ' ' -f 1)
version=$(echo "${package}" | cut -d ' ' -f 2)
# If there is no entry most likely this is not an AUR package, skip it
[[ -n ${local_versions[${name}]:-} ]] || continue
local_versions[${name}]=${version}
aur_query+=("arg[]=${name}")
done