# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Fortune database of quotes from bashfr.org"
HOMEPAGE="http://www.bashfr.org"
SRC_URI="http://distfiles.zugaina.org/bashfr-20080407.gz"
S="${WORKDIR}"
LICENSE="GPL-2 fairuse"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~m68k ~mips ~ppc64 ~s390 ~x86"

RDEPEND="games-misc/fortune-mod"

src_compile() {
	mv "bashfr-${PV}" bashfr || die
	strfile bashfr || die
}

src_install() {
	insinto /usr/share/fortune
	doins bashfr bashfr.dat || die
}