From 5eb09a9cc931ca506875276dcd7b794395ba77d0 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sun, 11 Sep 2022 20:42:30 +0200 Subject: archco: implement clone and configure subcommands Manages Git packaging repositories and helps with their configuration according to distro specs. Git author information and the used signing key is set up from makepkg.conf read from any valid location like /etc or XDG_CONFIG_HOME. The configure command can be used to synchronize the distro specs and makepkg.conf settings for previously cloned repositories. The unprivileged option can be used for cloning packaging repositories without SSH access using read-only HTTPS. Signed-off-by: Levente Polyak --- lib/common.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/common.sh') diff --git a/lib/common.sh b/lib/common.sh index 577bb6e..5f134ae 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -19,6 +19,15 @@ export LANG=C export BUILDTOOL=devtools export BUILDTOOLVER=m4_devtools_version +# Set common properties +export PACMAN_KEYRING_DIR=/etc/pacman.d/gnupg +export GITLAB_HOST=gitlab.archlinux.org +export GIT_REPO_SPEC_VERSION=1 +export GIT_PACKAGING_NAMESPACE=archlinux/packaging/packages +export GIT_PACKAGING_NAMESPACE_ID=11323 +export GIT_PACKAGING_URL_SSH="ssh://git@${GITLAB_HOST}/${GIT_PACKAGING_NAMESPACE}" +export GIT_PACKAGING_URL_HTTPS="https://${GITLAB_HOST}/${GIT_PACKAGING_NAMESPACE}" + # check if messages are to be printed using color if [[ -t 2 && "$TERM" != dumb ]]; then colorize -- cgit v1.2.3-54-g00ecf