EAPI=8

inherit go-module

go-module_set_globals

DESCRIPTION="A FUSE filesystem for WebDAV shares"

LICENSE=MIT
SLOT=0
KEYWORDS=~amd64

# vendor tarball needs to be updated with each release:
# https://wiki.gentoo.org/wiki/Writing_go_Ebuilds#Manual_Vendor_tarball

# use LFS for dependencies tarball in the portage-deps repo:
# git add foo-deps.tar.xz && git commit -a && git lfs migrate import --include=foo-deps.tar.xz --everything && git push

SRC_URI="
	https://github.com/miquels/$PN/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://git.alfter.us/salfter/portage-deps/media/branch/master/${P}-deps.tar.xz
	"
RESTRICT="mirror test"

DEPEND="sys-fs/fuse"

src_compile() 
{
	ego build
}

src_install()
{
	dobin $PN
	default
}