summaryrefslogtreecommitdiff
blob: a58f94b8414265641449962fe96e5c8879ea2a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

MY_PN="${PN/-bin}"

DESCRIPTION="Pokemon Go manager"
HOMEPAGE="https://github.com/Wolfsblvt/BlossomsPokemonGoManager"
SRC_URI="https://github.com/Wolfsblvt/BlossomsPokemonGoManager/releases/download/v${PV}/BPGM_v${PV}.zip -> ${P}.zip"

LICENSE="CC-BY-NC-SA-4.0"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""

RDEPEND="|| ( dev-java/oracle-jdk-bin:1.8[javafx] dev-java/oracle-jre-bin:1.8[javafx] )"
DEPEND="app-arch/unzip"

S="${WORKDIR}/BPGM_v${PV}"

src_install()
{
	insinto /opt/${MY_PN}
	newins BlossomsPogoManager.jar ${MY_PN}.jar

	dobin "${FILESDIR}/pogo-manager"
}

pkg_postinst()
{
	ewarn "Use of this tool is not sanctioned by Niantic and could get you banned."
	ewarn "You have been warned!"
}