# Contributor: Adam Thiede <me@adamthiede.com>
# Maintainer: Adam Thiede <me@adamthiede.com>
pkgname=bluetuith
pkgver=0.2.3
pkgrel=5
pkgdesc="TUI-based bluetooth connection manager"
url="https://github.com/darkhz/bluetuith"
arch="all"
license="MIT"
depends="bluez dbus"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/darkhz/bluetuith/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build
}

check() {
	go test -v
}

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

sha512sums="
be8c0aa7ba330d60f3a7988ec755ce557f9053c2a9fe8b3a647054cb8b3bbbb99b263e22da9ec35f083f24efb86df8cefa2de1ee0a7426672dab7f3380c7237d  bluetuith-0.2.3.tar.gz
"
