blob: c6e2aa0f25e6fcbce8710e6eefc3dcb56f540810 (
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
|
# Maintainer: Joel Noyce Barnham <joelnbarnham@gmail.com>
# Contributor: Magnus Bjerke Vik <mbvett@gmail.com>
pkgname=docker-credential-pass
pkgver=0.8.2
pkgrel=4
pkgdesc='Store docker credentials using the Standard Unix Password Manager (pass)'
arch=(x86_64)
url='https://github.com/docker/docker-credential-helpers'
license=('MIT')
depends=('pass')
makedepends=('go')
_gourl='github.com/docker/docker-credential-helpers'
source_x86_64=(
'docker-credential-helpers-v0.8.2.tar.gz::https://github.com/docker/docker-credential-helpers/archive/refs/tags/v0.8.2.tar.gz'
'LICENSE::https://raw.githubusercontent.com/docker/docker-credential-helpers/v0.8.2/LICENSE'
)
sha256sums_x86_64=(
'bc887a126dc294f5c60d0b2d50481cc9ee330249c482bcedd16607e4d18c98ba'
'a6c2a5fdf40879f644bdb0da9042f245e7e263237d623264aafcf2470610ad8c'
)
noextract=('docker-credential-helpers-v0.8.2.tar.gz')
prepare() {
mkdir -p "${srcdir}/src/${_gourl}"
tar -x --strip-components=1 -C "${srcdir}/src/${_gourl}" -f "${srcdir}/docker-credential-helpers-v0.8.2.tar.gz"
}
build() {
cd "${srcdir}/src/${_gourl}"
GO111MODULE=off GOPATH="${srcdir}" go install -v -x ./credentials
GO111MODULE=off GOPATH="${srcdir}" make pass
}
package() {
cd "${srcdir}/src/${_gourl}"
install -D -m 0755 bin/build/docker-credential-pass "${pkgdir}/usr/bin/docker-credential-pass"
install -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|