blob: 23dc02c521997c45be48cf607f484b37b23dfc03 (
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
|
# Maintainer: Tom Whitwell <tom.whitwell@digital.cabinet-office.gov.uk>
pkgname=gds-cli-git
pkgver=535.f8b405e
pkgrel=1
pkgdesc="CLI for GDS Staff"
arch=('i686' 'x86_64')
url="https://github.com/alphagov/gds-cli"
license=('unknown')
optdepends=("aws-cli: CLI for Amazon AWS"
"aws-vault: Manager for AWS Credentials"
"yubikey-manager: Manager for yubikey")
makedepends=('git' 'go')
provides=('gds-cli=${pkgver}')
conflicts=('gds-cli')
source=("${pkgname}"::"git+https://github.com/alphagov/gds-cli")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "${srcdir}/${pkgname}"
rm -rf gds
make gds
}
check() {
${srcdir}/${pkgname}/gds --version
}
package() {
mkdir -p "${pkgdir}/usr/bin"
make -C "${srcdir}/${pkgname}" INSTALL_PATH="${pkgdir}/usr/bin" install
cd "${pkgdir}/usr/bin"
ln -s gds gds-cli
}
|