You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
628 B
27 lines
628 B
# Copyright 2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
EGO_PN=github.com/Barzahlen/cronlocker
|
|
HASH=c0ac605
|
|
inherit golang-vcs-snapshot
|
|
|
|
DESCRIPTION="synchronize a cron job across multiple hosts using the consul lock feature"
|
|
HOMEPAGE="https://github.com/Barzahlen/cronlocker"
|
|
SRC_URI="https://github.com/Barzahlen/${PN}/archive/${HASH}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT MPL-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
src_compile() {
|
|
pushd src/${EGO_PN} || die
|
|
GOPATH="${S}" emake cronlocker
|
|
}
|
|
|
|
src_install() {
|
|
pushd src/${EGO_PN}
|
|
dobin cronlocker
|
|
dodoc *.md package/changelog
|
|
}
|