mirror of
https://github.com/Luzifer/archrepo.git
synced 2024-12-20 21:21:19 +00:00
Compare commits
3 commits
c3b3e42f0c
...
acd7a6a286
Author | SHA1 | Date | |
---|---|---|---|
acd7a6a286 | |||
28162fb6ed | |||
a5229faa9b |
3 changed files with 18 additions and 6 deletions
5
Makefile
5
Makefile
|
@ -48,11 +48,10 @@ clear_database:
|
||||||
rm -f $(REPO_DIR)/*.db* $(REPO_DIR)/*.files*
|
rm -f $(REPO_DIR)/*.db* $(REPO_DIR)/*.files*
|
||||||
|
|
||||||
list_packages:
|
list_packages:
|
||||||
cp ./scripts/packages.hdr.txt $(REPO_DIR)/packages.txt
|
bash ./scripts/listing.sh >$(REPO_DIR)/packages.txt
|
||||||
tar -tf $(DATABASE) | grep -v '/desc' | sed -E 's/(.*)-([^-]+-[0-9]+)\//\1\t\2/' | sort | column -t >>$(REPO_DIR)/packages.txt
|
|
||||||
|
|
||||||
repo_update: check_tools load_ssh_key
|
repo_update: check_tools load_ssh_key
|
||||||
bash -euo pipefail -c 'for repo in $$(grep -v "^#" repo-urls); do script_level=1 ./scripts/update-repo.sh $${repo}; done'
|
bash -euo pipefail -c 'for repo in $$(grep -v "^#" repo-urls | cut -d "#" -f 1); do script_level=1 ./scripts/update-repo.sh $${repo}; done'
|
||||||
|
|
||||||
sign_database:
|
sign_database:
|
||||||
repo-add -s --key $(REPOKEY) $(DATABASE)
|
repo-add -s --key $(REPOKEY) $(DATABASE)
|
||||||
|
|
|
@ -33,8 +33,6 @@ https://aur.archlinux.org/babel-eslint.git
|
||||||
https://aur.archlinux.org/cargo-make.git
|
https://aur.archlinux.org/cargo-make.git
|
||||||
https://aur.archlinux.org/cef-minimal.git
|
https://aur.archlinux.org/cef-minimal.git
|
||||||
https://aur.archlinux.org/cinny-desktop.git
|
https://aur.archlinux.org/cinny-desktop.git
|
||||||
https://aur.archlinux.org/consul-bin.git
|
|
||||||
#https://aur.archlinux.org/dog-dns-git.git # NOTE(kahlers): Broken as of 2023-03-15
|
|
||||||
https://aur.archlinux.org/espanso.git
|
https://aur.archlinux.org/espanso.git
|
||||||
https://aur.archlinux.org/exa-git.git
|
https://aur.archlinux.org/exa-git.git
|
||||||
https://aur.archlinux.org/golangci-lint-bin.git
|
https://aur.archlinux.org/golangci-lint-bin.git
|
||||||
|
@ -59,11 +57,12 @@ https://aur.archlinux.org/qflipper-git.git
|
||||||
https://aur.archlinux.org/qrcodegen-cmake.git
|
https://aur.archlinux.org/qrcodegen-cmake.git
|
||||||
https://aur.archlinux.org/rasdaemon.git
|
https://aur.archlinux.org/rasdaemon.git
|
||||||
https://aur.archlinux.org/rdm-bin.git
|
https://aur.archlinux.org/rdm-bin.git
|
||||||
#https://aur.archlinux.org/rustdesk.git # NOTE(kahlers): Broken as of 2023-03-15
|
https://aur.archlinux.org/rustdesk.git
|
||||||
https://aur.archlinux.org/spotify.git
|
https://aur.archlinux.org/spotify.git
|
||||||
https://aur.archlinux.org/thinkfan.git
|
https://aur.archlinux.org/thinkfan.git
|
||||||
https://aur.archlinux.org/ulauncher.git
|
https://aur.archlinux.org/ulauncher.git
|
||||||
https://aur.archlinux.org/usbtop.git
|
https://aur.archlinux.org/usbtop.git
|
||||||
|
https://aur.archlinux.org/vcpkg.git # NOTE(kahlers): Dependency of rustdesk
|
||||||
https://aur.archlinux.org/wrk.git
|
https://aur.archlinux.org/wrk.git
|
||||||
https://aur.archlinux.org/xflux.git
|
https://aur.archlinux.org/xflux.git
|
||||||
https://aur.archlinux.org/yay.git
|
https://aur.archlinux.org/yay.git
|
||||||
|
|
14
scripts/listing.sh
Normal file
14
scripts/listing.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source ./scripts/script_framework.sh
|
||||||
|
|
||||||
|
[[ -n ${DATABASE:-} ]] || fatal "Missing DATABASE envvar"
|
||||||
|
|
||||||
|
cat scripts/packages.hdr.txt
|
||||||
|
{
|
||||||
|
for pkg in $(tar -tf ${DATABASE} | grep -v '/desc'); do
|
||||||
|
buildtime=$(date -u -d @$(tar -xf ${DATABASE} --to-stdout "${pkg}desc" | grep -A1 '%BUILDDATE%' | tail -n1))
|
||||||
|
echo -e "$(sed -E 's/(.*)-([^-]+-[0-9]+)\//\1\t\2/' <<<"${pkg}")\t${buildtime}"
|
||||||
|
done
|
||||||
|
} | sort | column -t -s "$(printf "\t")" -N 'Package,Version,Build-Time'
|
Loading…
Reference in a new issue