From 7f7da9e665a05477195f731103f553d5d4e4bdd5 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 15 May 2020 01:47:43 +0300 Subject: [PATCH] move the config out of the script Signed-off-by: fbt --- pkgbuilder | 51 +-------------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/pkgbuilder b/pkgbuilder index 1e4a3f7..98ec586 100755 --- a/pkgbuilder +++ b/pkgbuilder @@ -21,57 +21,8 @@ lockfile="$HOME/.cache/pkgbuilder/.lock" lock || exit 1 trap cleanup EXIT -spark_repos="$HOME/public" - declare -A pkg_dests -pkg_dests=( - [spark]="$spark_repos/spark/import" - [spark-extra]="$spark_repos/spark-extra/import" - [spark-testing]="$spark_repos/spark-testing/import" - [spark-updates]="$spark_repos/spark-updates/spark/import" -) - -repos=( - spark "https://code.fleshless.org/pkgbuilds/sinit-spark" - spark "https://code.fleshless.org/pkgbuilds/sinit-sysvcompat" - spark "https://code.fleshless.org/pkgbuilds/smdev" - spark "https://code.fleshless.org/pkgbuilds/spark-etc" - spark "https://code.fleshless.org/pkgbuilds/spark-rc" - spark "https://code.fleshless.org/pkgbuilds/ssm" - spark "https://code.fleshless.org/pkgbuilds/ssm-services-git" - spark "https://code.fleshless.org/pkgbuilds/systemd-dummy" - spark "https://code.fleshless.org/pkgbuilds/ubase-extras" - spark "https://code.fleshless.org/pkgbuilds/udev-dummy" - spark "https://code.fleshless.org/pkgbuilds/xorg-noudev-conf" - spark-extra "https://code.fleshless.org/pkgbuilds/anope-services" - spark-extra "https://code.fleshless.org/pkgbuilds/chef-client" - spark-extra "https://code.fleshless.org/pkgbuilds/dmenu-q-xywh-xft-git" - spark-extra "https://code.fleshless.org/pkgbuilds/dxvk-bin" - spark-extra "https://code.fleshless.org/pkgbuilds/eudev" - spark-extra "https://code.fleshless.org/pkgbuilds/fake" - spark-extra "https://code.fleshless.org/pkgbuilds/graphicsmagick-webp" - spark-extra "https://code.fleshless.org/pkgbuilds/ircd-ratbox" - spark-extra "https://code.fleshless.org/pkgbuilds/lemonbar" - spark-extra "https://code.fleshless.org/pkgbuilds/libsystemd-standalone" - spark-extra "https://code.fleshless.org/pkgbuilds/loksh" - spark-extra "https://code.fleshless.org/pkgbuilds/mlmmj" - spark-extra "https://code.fleshless.org/pkgbuilds/nginx-mod-rtmp" - spark-extra "https://code.fleshless.org/pkgbuilds/posh" - spark-extra "https://code.fleshless.org/pkgbuilds/prm" - spark-extra "https://code.fleshless.org/pkgbuilds/qstat" - spark-extra "https://code.fleshless.org/pkgbuilds/scron" - spark-extra "https://code.fleshless.org/pkgbuilds/sx-utils" - spark-extra "https://code.fleshless.org/pkgbuilds/systemd-libs-systemd" - spark-extra "https://code.fleshless.org/pkgbuilds/ufw-tools" - spark-extra "https://code.fleshless.org/pkgbuilds/xkb-layout-ducky-mini" - spark-extra "https://code.fleshless.org/pkgbuilds/xsct-git" - spark-testing "https://code.fleshless.org/pkgbuilds/compton-git" - spark-testing "https://code.fleshless.org/pkgbuilds/fskit-git" - spark-testing "https://code.fleshless.org/pkgbuilds/ssm-git" - spark-testing "https://code.fleshless.org/pkgbuilds/xtitle-git" -) - - +source "$HOME/.config/pkgbuilder/config" wrkdir="$HOME/.cache/pkgbuilder/repositories" mkdir -p "$wrkdir"