blob: 7bd535089a331a7490f21ebe1acea286add9f8b9 (
plain) (
tree)
|
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
MY_P="v2-${PV}"
KEYWORDS="amd64 x86"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz ${EGO_SUM_SRC_URI}"
SRC_URI+="https://nest.oriole.systems/gentoo/go-mod/${P}-deps.tar.xz"
DESCRIPTION="Minimalist and opinionated feed reader"
HOMEPAGE="https://miniflux.app/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
RESTRICT="mirror"
DEPEND="
acct-user/miniflux
acct-group/miniflux"
RDEPEND="${DEPEND}
>=dev-db/postgresql-9.5"
S="${WORKDIR}/${MY_P}"
src_unpack() {
go-module_src_unpack
}
src_compile() {
go build -ldflags="-X miniflux.app/version.Version=${PV} -X miniflux.app/version.BuildDate=$(date +%FT%T%z)" || die
}
src_install() {
newbin ${PN}.app ${PN}
doman ${PN}.1
insinto /etc/miniflux
doins "${FILESDIR}/miniflux.conf"
fowners root:miniflux /etc/miniflux
fperms 0750 /etc/miniflux
newinitd "${FILESDIR}/miniflux.initd" miniflux
}
|