blob: 15b538000b4821f19f7223d46997d2dc1dff9eeb (
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
|
# Maintainer: Sebastian Kunze <mail at sebastiankunze dot de>
pkgname=tfswitch
pkgver=1.2.4
pkgrel=1
pkgdesc='A command line tool to switch between different versions of terraform.'
arch=('x86_64')
url='https://github.com/warrensbox/terraform-switcher'
license=('MIT')
makedepends=('go')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('bb94ef35fa7cc8bcb8aa9ad4b6b2097a1387aeadf671a3dcf19a4a92d98e2782')
build() {
cd "terraform-switcher-$pkgver"
go build \
-trimpath \
-ldflags "-s -w -X main.version=v$pkgver" \
-o "$pkgname" .
}
package() {
cd "terraform-switcher-$pkgver"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|