# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=rcon-cli
pkgver=1.7.1
pkgrel=0
pkgdesc="A little RCON cli based on james4k's RCON library for golang"
url="https://github.com/itzg/rcon-cli"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/itzg/rcon-cli/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

build() {
	go build .
}

package() {
	install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin/
}

sha512sums="
dfb53bcf014e1fd72df7448c81c880f4d9fd88138eb5b206450284f3307eacbc47895123c5b747a0d79b3812900dbf8b05384140275d43b53c860c87ac8a7a43  rcon-cli-1.7.1.tar.gz
"
