From d55248989fe4aa8b7c6f5d06ac8a89b66ba3aba8 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Tue, 10 Jun 2025 13:32:36 -0400 Subject: refactor: multiple changes (see description) * add LICENSEs where necesary * remove *pkg scripts from repo see: https://github.com/kj-sh604/gitpkg * rename .local/src python directories * update .local/bin scripts in relation to above --- .local/bin/aria2pkg | 60 ----------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100755 .local/bin/aria2pkg (limited to '.local/bin/aria2pkg') diff --git a/.local/bin/aria2pkg b/.local/bin/aria2pkg deleted file mode 100755 index 378008c..0000000 --- a/.local/bin/aria2pkg +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -check_aria2c_installed() { - if ! command -v aria2c >/dev/null 2>&1; then - echo "error: aria2c is not installed :( please install aria2c to use aria2pkg." - exit 1 - fi -} - -_base_url='https://aur.archlinux.org/cgit/aur.git/snapshot' - -get_url_function() { - _pkg="$1" - _url="${_base_url}/${_pkg}.tar.gz" - - echo "$_url" -} - -run_aria2pkg_function() { - _pkg="$(echo "$1" | tr -d '[:space:]')" - _url="$(get_url_function "$_pkg")" - - aria2c --quiet --console-log-level=error "$_url" -} - -aria2pkg_function() { - for _pkg in "$@"; do - run_aria2pkg_function "$_pkg" & - done - wait -} - -usage_function() { - cat < ... - -Options: - -h, --help - print this help message -EOF -} - -check_aria2c_installed - -while [ $# -gt 0 ]; do - case "$1" in - -*) - usage_function - exit 0 - ;; - *) - aria2pkg_function "$@" - exit 0 - ;; - esac -done - -# vim: set filetype=sh foldmethod=marker foldlevel=0: -- cgit v1.2.3