42 lines
926 B
Bash
42 lines
926 B
Bash
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
inherit go-module
|
|
|
|
EGO_VENDOR=(
|
|
"github.com/docopt/docopt-go ee0de3bc6815"
|
|
"github.com/mattn/go-xmpp a86b6abcb3ad"
|
|
"github.com/seletskiy/tplutil 8cd6d8f15a24"
|
|
)
|
|
|
|
EGIT_COMMIT="1403fbb0165c84d6a5fc68c890fe7bedb770f781"
|
|
SRC_URI="https://github.com/iSchluff/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
|
|
$(go-module_vendor_uris)"
|
|
KEYWORDS="~amd64"
|
|
|
|
DESCRIPTION="Turn WebHooks into jabber notifications "
|
|
HOMEPAGE="https://github.com/seletskiy/jibber"
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
|
|
|
src_compile() {
|
|
export -n GOCACHE XDG_CACHE_HOME
|
|
env GOBIN="${S}/bin" go install ./... || die
|
|
}
|
|
|
|
src_install() {
|
|
einstalldocs
|
|
doinitd "${FILESDIR}/init.d/jibber"
|
|
doconfd "${FILESDIR}/conf.d/jibber"
|
|
insinto /etc/jibber
|
|
doins -r tpl
|
|
dobin bin/*
|
|
}
|