diff options
author | 1024x2 | 2025-06-19 11:50:59 +0100 |
---|---|---|
committer | 1024x2 | 2025-06-19 11:59:30 +0100 |
commit | 746f088c5ed12d3f3c65c42584affbf66eeb9e09 (patch) | |
tree | a083b70544d40f9043b733f07267bc3a71b2ef9a /dev-vcs/p4/p4-2022.2.2637361.ebuild | |
parent | 7b15792b2f0e7d4a734c073b62a2634aa1484280 (diff) |
Diffstat (limited to 'dev-vcs/p4/p4-2022.2.2637361.ebuild')
-rw-r--r-- | dev-vcs/p4/p4-2022.2.2637361.ebuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/dev-vcs/p4/p4-2022.2.2637361.ebuild b/dev-vcs/p4/p4-2022.2.2637361.ebuild index 036f986..016fbc1 100644 --- a/dev-vcs/p4/p4-2022.2.2637361.ebuild +++ b/dev-vcs/p4/p4-2022.2.2637361.ebuild @@ -3,14 +3,25 @@ EAPI=8 +inherit verify-sig + REL="$(ver_cut 1-2)" SHORTREL="${REL:2}" DESCRIPTION="Command-line client for the Perforce VCS" HOMEPAGE="https://www.perforce.com/" SRC_URI=" - x86? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86/p4 -> ${P}-x86 ) - amd64? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4 -> ${P}-amd64 ) + x86? ( + https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86/p4 -> ${P}-x86 + verify-sig? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86/p4.asc -> ${P}-x86.asc ) + ) + amd64? ( + https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4 -> ${P}-amd64 + verify-sig? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4.asc -> ${P}-amd64.asc ) + ) +" +BDEPEND=" + verify-sig? ( >=sec-keys/openpgp-keys-perforce-20250619 ) " S="${WORKDIR}" LICENSE="Perforce" @@ -19,10 +30,9 @@ KEYWORDS="-* ~amd64 ~x86" IUSE="" RESTRICT="mirror strip bindist" -src_unpack() { - cp "${DISTDIR}/${A}" p4 || die -} +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/perforce.asc" src_install() { - dobin p4 + local files=( ${A} ) + newbin "${files[0]/#/${DISTDIR}/}" p4 } |