diff --git a/Makefile b/Makefile index 1a88406..d30ca72 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ export DATABASE:=$(REPO_DIR)/luzifer.db.tar.zst maintanance: do_updates do_cleanup list_packages upload -do_updates: aur_update do_updates: repo_update do_cleanup: cleanup_repo @@ -32,12 +31,6 @@ upload: cleanup_files check_archive_mix # Maintenance targets -aur_update: check_tools check_database - bash -euo pipefail -c 'for pkg in $$(script_level=1 ./scripts/check_aur_updates.sh); do script_level=1 ./scripts/update-aur.sh $${pkg}; done' - -check_aur_update: check_database - bash ./scripts/check_aur_updates.sh - check_database: test -n '$(DATABASE)' diff --git a/aur-packages b/aur-packages deleted file mode 100644 index 0346dc5..0000000 --- a/aur-packages +++ /dev/null @@ -1,51 +0,0 @@ -adobe-base-14-fonts -anydesk-bin -archisteamfarm-bin -ausweisapp2 -babel-eslint -cef-minimal -consul-bin -dog-dns-git -envrun -eslint-plugin-vue -exa-git -gofumpt -golangci-lint-bin -google-chrome -google-chrome-beta -google-chrome-dev -google-cloud-sdk -gorun -hfsprogs -jiq -kubelogin -libajantv2 -librespeed-cli -ltwheelconf-git -losslesscut-bin -mozjpeg -mpd-mpris -nerd-fonts-dejavu-complete -obs-cli -obs-teleport -oh-my-posh-bin -platformio -python-ajsonrpc -python-json-rpc -python-pulsectl -python-vdf -qflipper-git -rdm-bin -reg -rustdesk -spotify -steamcmd -streamdeck -teams -ttyd -ulauncher -usbtop -vault2env -wrk -xflux -yay diff --git a/scripts/check_aur_updates.sh b/scripts/check_aur_updates.sh deleted file mode 100755 index b7a2d83..0000000 --- a/scripts/check_aur_updates.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash -set -euo pipefail - -source scripts/script_framework.sh - -join_by() { - local d=$1 - shift - echo -n "$1" - shift - printf "%s" "${@/#/$d}" -} - -declare -A local_versions -declare -A aur_versions - -IFS=$'\n' - -database=$(find ${REPO_DIR:-$(pwd)} -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_version})" - updates+=("${package}") - continue - } - - success "Package ${package} is up-to-date (${local_version})" -done - -echo "${updates[@]}" diff --git a/scripts/update-aur.sh b/scripts/update-aur.sh deleted file mode 100755 index 0259644..0000000 --- a/scripts/update-aur.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -set -euo pipefail - -source ./scripts/script_framework.sh - -REPO_DIR=${REPO_DIR:-$(pwd)} - -PACKAGE=${1:-} -[ -z "${PACKAGE}" ] && fail "No package given as CLI argument" - -# Create working dir -TMPDIR="/tmp/aur2repo_${PACKAGE}" -mkdir -p "${TMPDIR}/cfg" - -# Ensure cleanup on script exit -function cleanup() { - rm -rf "${TMPDIR}" -} -trap cleanup EXIT - -step "Fetching signing key" -vault read --field=key secret/jenkins/arch-signing >"${TMPDIR}/cfg/signing.asc" - -step "Re-fetching Docker image" -docker pull gcr.io/luzifer-registry/arch-repo-builder - -step "Building AUR package ${PACKAGE}" -docker run --rm -ti \ - -v "${TMPDIR}/src:/src" \ - -v "${TMPDIR}/cfg:/config" \ - -v "${REPO_DIR}:/repo" \ - -v "$(pwd)/scripts/pacman.conf:/etc/pacman.conf:ro" \ - gcr.io/luzifer-registry/arch-repo-builder \ - "https://aur.archlinux.org/${PACKAGE}.git"