summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0bc1016fb97137f231c2bfb5147536b08d5f0fdb (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
# Maintainer: Dmitri Goutnik <dg@syrec.org>
# Contributor: Tom Tobin <archlinux@tomxtobin.com>

pkgname=awless
pkgver=0.1.11
pkgrel=1
pkgdesc='A command line interface for Amazon Web Services (AWS)'
arch=('i686' 'x86_64')
url='https://github.com/wallix/awless'
license=('Apache')
depends=('glibc')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('1a78636face8753cb983a5e4c1e3bfc9e1940e7eb932aa01fe2cbded46fd4292')

prepare() {
  mkdir -p src/github.com/wallix
  mv ${pkgname}-${pkgver} src/github.com/wallix/awless
}

build() {
  cd src/github.com/wallix/awless
  env GOPATH="${srcdir}" go build
}

# check() {
#   cd src/github.com/wallix/awless
#   env GOPATH="${srcdir}" go test ./...
# }

package() {
  cd src/github.com/wallix/awless
  install -Dm755 awless "${pkgdir}/usr/bin/${pkgname}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}