# vim: ft=sh # Folders AURDIR="$HOME/aur" AURDEST="$AURDIR/Pkgbuilds" PKGDEST="$AURDIR/Packages" SRCDEST="$AURDIR/Source" test -d "$AURDEST" || mkdir -p "$AURDEST" || exit 1 test -d "$PKGDEST" || mkdir -p "$PKGDEST" || exit 1 test -d "$SRCDEST" || mkdir -p "$SRCDEST" || exit 1 # GnuPG Signatures export GNUPGHOME="$AURDIR/gnupg" test -d "$GNUPGHOME" || mkdir -p "$GNUPGHOME" && chmod go-w "$GNUPGHOME" || exit 1 if ! test -e "$GNUPGHOME/gpg.conf"; then cat >"$GNUPGHOME/gpg.conf" </dev/null || exit 1 else echo "Failed to initialize aur.sh GnuPG keyring" exit 1 fi fi # ABS if which asp >/dev/null 2>&1; then ABSDEST="$AURDIR/ABS" export ASPROOT="$ABSDEST/.asp" test -d "$ABSDEST" || mkdir -p "$ABSDEST" || exit 1 test -d "$ASPROOT" || mkdir -p "$ASPROOT" || exit 1 fi