summaryrefslogtreecommitdiff
path: root/.config/pacman/makepkg.conf
diff options
context:
space:
mode:
Diffstat (limited to '.config/pacman/makepkg.conf')
-rw-r--r--.config/pacman/makepkg.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/pacman/makepkg.conf b/.config/pacman/makepkg.conf
new file mode 100644
index 0000000..caad51b
--- /dev/null
+++ b/.config/pacman/makepkg.conf
@@ -0,0 +1,11 @@
+PKGDEST="${HOME}/packages/pkgdest"
+SRCDEST="${HOME}/packages/srcdest"
+SRCPKGDEST="${HOME}/packages/srcpkgdest"
+LOGDEST="${HOME}/packages/logdest"
+BUILDDIR="${HOME}/packages/builddir"
+
+GPGKEY="$({
+ sed -nr 's/^\s*default-key\s+//p' "${HOME}/.gnupg/gpg.conf"
+ gpg --list-secret-keys --with-colons | grep ^sec: | cut -d: -f5 | sed -r 's/.*(........)$/\1/'
+ } | sed 1q)"
+PACKAGER="$(gpg --with-colons --fingerprint "$GPGKEY"|grep ^uid:|cut -d: -f10)"