Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2022-09-11 20:42:30 +0200
committerLevente Polyak <anthraxx@archlinux.org>2023-05-19 22:27:11 +0200
commit5eb09a9cc931ca506875276dcd7b794395ba77d0 (patch)
tree695a655f240a10b6e9374081cbe2884bb21f027d /lib
parent66758941594831e5da81a7c00280e73ccc842688 (diff)
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 <anthraxx@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh9
1 files changed, 9 insertions, 0 deletions
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