summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4978ddf5b036dc46265a3fcdb8ca3474eef8a3fb (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
# Maintainer: Martin Knudsen <martin.knudsen@gmail.com>

pkgname=swamp
pkgver=0.11.0
pkgrel=1
pkgdesc="Teh AWS profile manager"
arch=('x86_64'  )
url="https://github.com/felixb/swamp"
license=('MIT')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("https://github.com/felixb/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('58c517f21160e19015d98a758a94bf8ebfc390cf1b3532c360cc890378ad5163')

build() {
  cd "$pkgname-$pkgver"

  case "$CARCH" in
    x86_64)
      make
      ;;
    *)
      echo "No suitable build available."
      exit 127
      ;;
  esac
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 "build/${pkgname}" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: