nemunaire-overlay/www-apps/youp0m/youp0m-9999.ebuild
Pierre-Olivier Mercier 12310ca65d www-apps/youp0m: new package
Package-Manager: Portage-2.3.13, Repoman-2.3.3
2018-05-01 14:37:42 +02:00

35 lines
664 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGO_PN=git.nemunai.re/youp0m.git
if [[ ${PV} = *9999* ]]; then
inherit golang-vcs
else
KEYWORDS="~amd64 ~arm ~mips"
EGIT_COMMIT=v${PV}
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
inherit golang-vcs-snapshot
fi
inherit golang-build
DESCRIPTION="Display a daily cute picture"
HOMEPAGE="https://ohsnap.p0m.fr"
LICENSE="AGPL-3"
SLOT="0"
IUSE=""
DEPEND="
dev-go/go-crypt
dev-go/resize
"
RDEPEND=""
src_install() {
mv ${PN}.git ${PN}
dobin ${PN}
newinitd "${FILESDIR}"/${PN}.init ${PN}
keepdir /var/lib/${PN}
}