This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/app-misc/feiertage/feiertage-1.7.2.ebuild
tastytea 7f1221e5c4
Some checks reported errors
continuous-integration/drone/push Build was killed
app-misc/feiertage: Version bump 1.7.2
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2019-05-26 18:23:46 +02:00

41 lines
800 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit golang-build
DESCRIPTION="Bank holidays/public holidays in Austria and Germany"
HOMEPAGE="https://github.com/wlbr/feiertage"
SRC_URI="https://github.com/wlbr/feiertage/archive/v${PV}.tar.gz -> ${P}.tar.gz"
EGO_PN="."
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND=""
DEPEND="
${RDEPEND}
>=dev-lang/go-1.10.1
"
src_prepare() {
mkdir -p src/github.com/wlbr
cd src/github.com/wlbr
ln -s ../../../ feiertage
cd ../../../
default_src_prepare
}
src_compile()
{
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o bin/feiertage cmd/feiertage/feiertage.go
}
src_install() {
dobin bin/${PN}
dodoc README.md
elog "This ebuild only installs the binary."
}