# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!!!EBUILD IS BASED ON ARCHLINUX PKDBUILD
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


EAPI=8
DESCRIPTION="QStarDict is Qt4 version of StarDict"
HOMEPAGE="http://qstardict.org/"
SRC_URI="https://notabug.org/a-rodin/qstardict/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 amd64"
RDEPEND=">=dev-qt/qtcore-5.6 >=dev-libs/glib-2.0"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${PN}"

src_compile() {
	qmake5 ENABLE_PLUGINS="stardict swac web"  || die "qmake failed"
	make
}
src_install() {
	make INSTALL_ROOT="${D}" install
}