pentoo-overlay/net-misc/waybackurls/waybackurls-0.0.2.ebuild

34 lines
821 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_PN="github.com/tomnomnom/waybackurls"
inherit eutils golang-vcs-snapshot
DESCRIPTION="Fetch all the URLs that the Wayback Machine knows about for a domain"
HOMEPAGE="https://github.com/tomnomnom/waybackurls"
SRC_URI="https://github.com/tomnomnom/waybackurls/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="Unlicense"
IUSE=""
SLOT=0
RDEPEND=""
DEPEND=">=dev-lang/go-1.12"
src_compile() {
GOPATH="${S}:$(get_golibdir_gopath)" \
GOCACHE="${T}/go-cache" \
go build -v -work -x -ldflags="-s -w" "${EGO_PN}" || die
}
src_install() {
GOPATH="${S}:$(get_golibdir_gopath)" \
GOCACHE="${T}/go-cache" \
go install -v -work -x -ldflags="-s -w" "${EGO_PN}" || die
dobin bin/${PN}
}