# Contributor: Tuan Anh Tran <me@tuananh.org>
# Maintainer: Tuan Anh Tran <me@tuananh.org>
pkgname=walk
pkgver=1.10.0
pkgrel=0
pkgdesc="Terminal file manager"
url="https://github.com/antonmedv/walk"
arch="all"
license="MIT"
makedepends="go"
options="!check" # no tests available upstream
source="$pkgname-$pkgver.tar.gz::https://github.com/antonmedv/walk/archive/refs/tags/v$pkgver.tar.gz"

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

build() {
	go build -o bin/walk
}

package() {
	install -Dm0755 bin/walk -t "$pkgdir"/usr/bin/
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 -t "$pkgdir"/usr/share/doc/"$pkgname" README.md
}

sha512sums="
c76368094a2028635f945c2609c86d8dfc57044e8b8421fd241bd9040d92c60e3daeb143c3fc305bdc38030ff23412172a9348f825639e6e8fcf3e81d756934f  walk-1.10.0.tar.gz
"
