2017-07-12 09:01:30 +00:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2017-05-19 12:05:00 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
if [[ ${PV} == 9999* ]]; then
|
|
|
|
EGIT_REPO_URI="https://github.com/raoulh/moolticute.git"
|
|
|
|
inherit git-r3
|
|
|
|
KEYWORDS=""
|
|
|
|
else
|
2017-08-11 09:15:14 +00:00
|
|
|
MY_PV="${PV}-beta"
|
|
|
|
SRC_URI="https://github.com/raoulh/moolticute/archive/v${MY_PV}.tar.gz -> moolticute-${PV}.tar.gz"
|
2017-05-19 12:05:00 +00:00
|
|
|
KEYWORDS="~amd64 ~arm"
|
2017-08-11 09:15:14 +00:00
|
|
|
S=${WORKDIR}/${PN}-${MY_PV}
|
2017-05-19 12:05:00 +00:00
|
|
|
fi
|
|
|
|
|
2017-08-11 09:15:14 +00:00
|
|
|
inherit qmake-utils udev
|
2017-05-19 12:05:00 +00:00
|
|
|
|
|
|
|
DESCRIPTION="Mooltipass crossplatform daemon/tools "
|
|
|
|
HOMEPAGE="https://github.com/raoulh/moolticute"
|
|
|
|
|
2017-08-11 09:15:14 +00:00
|
|
|
LICENSE="GPL-3"
|
2017-05-19 12:05:00 +00:00
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
2017-08-11 09:15:14 +00:00
|
|
|
RDEPEND=">=dev-qt/qtcore-5.6:5
|
|
|
|
dev-qt/qtwidgets:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtnetwork:5
|
|
|
|
dev-qt/qtwebsockets:5
|
2017-07-12 09:01:30 +00:00
|
|
|
>=dev-libs/libusb-1.0.20"
|
2017-05-19 12:05:00 +00:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
eqmake5 PREFIX="/usr" Moolticute.pro
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake install INSTALL_ROOT="${D}"
|
2017-08-11 09:15:14 +00:00
|
|
|
|
2017-08-24 06:29:09 +00:00
|
|
|
udev_dorules "${FILESDIR}/50-mooltipass.rule"
|
2017-08-24 07:39:18 +00:00
|
|
|
newinitd "${FILESDIR}/moolticuted.init" moolticuted
|
2017-08-11 09:15:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
udev_reload
|
2017-05-19 12:05:00 +00:00
|
|
|
}
|