parent
0e4824eadb
commit
d2a5caf8d2
2 changed files with 65 additions and 0 deletions
38
srcpkgs/pacman/patches/gpg2gpg2.patch
Normal file
38
srcpkgs/pacman/patches/gpg2gpg2.patch
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
gpg to gpg2:
|
||||||
|
Arch's "gnupg" package is this distro's "gnupg2"
|
||||||
|
This patches all references to the gpg command to use
|
||||||
|
gpg2 instead.
|
||||||
|
|
||||||
|
diff -Naur pacman-5.2.1.orig/scripts/pacman-key.sh.in pacman-5.2.1/scripts/pacman-key.sh.in
|
||||||
|
--- scripts/pacman-key.sh.in 2019-10-24 06:29:08.000000000 -0700
|
||||||
|
+++ scripts/pacman-key.sh.in 2020-05-24 02:30:26.838797182 -0700
|
||||||
|
@@ -51,6 +51,7 @@
|
||||||
|
UPDATEDB=0
|
||||||
|
USE_COLOR='y'
|
||||||
|
VERIFY=0
|
||||||
|
+GPG_COMMAND='gpg2'
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
printf "pacman-key (pacman) %s\n" ${myver}
|
||||||
|
@@ -591,8 +592,8 @@
|
||||||
|
unset ALL_OFF BOLD BLUE GREEN RED YELLOW
|
||||||
|
fi
|
||||||
|
|
||||||
|
-if ! type -p gpg >/dev/null; then
|
||||||
|
- error "$(gettext "Cannot find the %s binary required for all %s operations.")" "gpg" "pacman-key"
|
||||||
|
+if ! type -p ${GPG_COMMAND} >/dev/null; then
|
||||||
|
+ error "$(gettext "Cannot find the %s binary required for all %s operations.")" "${GPG_COMMAND}" "pacman-key"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -611,7 +612,7 @@
|
||||||
|
# file, falling back on a hard default
|
||||||
|
PACMAN_KEYRING_DIR=${PACMAN_KEYRING_DIR:-$(pacman-conf --config="$CONFIG" gpgdir)}
|
||||||
|
|
||||||
|
-GPG_PACMAN=(gpg --homedir "${PACMAN_KEYRING_DIR}" --no-permission-warning)
|
||||||
|
+GPG_PACMAN=(${GPG_COMMAND} --homedir "${PACMAN_KEYRING_DIR}" --no-permission-warning)
|
||||||
|
if [[ -n ${KEYSERVER} ]]; then
|
||||||
|
GPG_PACMAN+=(--keyserver "${KEYSERVER}")
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
27
srcpkgs/pacman/template
Normal file
27
srcpkgs/pacman/template
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Template file for 'pacman'
|
||||||
|
pkgname=pacman
|
||||||
|
version=5.2.2
|
||||||
|
revision=1
|
||||||
|
make_dirs="/var/lib/pacman 0755 root root
|
||||||
|
/usr/var/cache/pacman/pkg 0755 root root
|
||||||
|
/usr/share/libalpm/hooks 0755 root root"
|
||||||
|
conf_files="/etc/pacman.conf"
|
||||||
|
build_style=meson
|
||||||
|
hostmakedepends="autoconf automake curl libtool gettext-devel pkg-config asciidoc"
|
||||||
|
makedepends="libarchive-devel gpgme-devel libcurl-devel"
|
||||||
|
depends="gnupg2"
|
||||||
|
checkdepends="fakeroot"
|
||||||
|
short_desc="Simple library-based package manager"
|
||||||
|
maintainer="oreo639 <oreo6391@gmail.com>"
|
||||||
|
license="GPL-2.0-or-later"
|
||||||
|
homepage="https://www.archlinux.org/pacman/"
|
||||||
|
distfiles="https://sources.archlinux.org/other/pacman/pacman-${version}.tar.gz"
|
||||||
|
checksum=bb201a9f2fb53c28d011f661d50028efce6eef2c1d2a36728bdd0130189349a0
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||||
|
do_check() {
|
||||||
|
: fakechroot is not available
|
||||||
|
}
|
||||||
|
else
|
||||||
|
checkdepends+=" fakechroot"
|
||||||
|
fi
|
Loading…
Reference in a new issue