blob: d1a4f4146a8ff7ce6a8446744d295168a08e9e15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Robert Zhou <meep dot aur at meepzh dot com>
# Contributor: Julie Shapiro <jshapiro at nvidia dot com>
pkgname=p4
_version=2024.2
pkgver=2024.2.2675662
pkgrel=1
pkgdesc="Perforce's Helix command-line client"
arch=('x86_64')
depends=('glibc')
url="https://www.perforce.com"
license=('custom:p4')
_url="${url}/downloads/perforce"
_filename="${pkgver:2:4}-$(date +%Y%m%d)-${pkgname}"
source=(LICENSE
"${_filename}"::"${_url}/r${pkgver:2:4}/bin.linux26x86_64/${pkgname}"
"${_filename}.asc"::"${_url}/r${pkgver:2:4}/bin.linux26x86_64/${pkgname}.asc")
sha256sums=('c4ed3aef62b1bbf2d16ce4cceb65dc49ab9635b38e2fed0a595fe259283a9f32'
'ee9cd514717dc7ef7d3f2fffb91d67b625291e740dcd72ba929a4c93ed0944c7'
'SKIP')
# Perforce Software (Package Signing) <support+packaging@perforce.com>
validpgpkeys=('7123CB760FF18869'
'E58131C0AEA7B082C6DC4C937123CB760FF18869')
pkgver() {
# grab the build version from the asc file itself
echo "${_version}.$(grep "$_version" "${_filename}.asc" | awk -F'/' '{print $NF}')"
}
package() {
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
install -D -m 755 "${_filename}" "${pkgdir}/usr/bin/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|