28 lines
604 B
Bash
28 lines
604 B
Bash
# Copyright 2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DESCRIPTION="The official Minecraft launcher"
|
|
HOMEPAGE="https://www.minecraft.net/fr-fr/download/alternative/"
|
|
SRC_URI="https://launcher.mojang.com/download/Minecraft.tar.gz"
|
|
|
|
LICENSE=""
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND="~virtual/jre-1.8.0"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
S="${WORKDIR}/minecraft-launcher"
|
|
|
|
src_install() {
|
|
dodir "/usr/share/${PN}"
|
|
insinto "/usr/share/${PN}"
|
|
doins *
|
|
chmod +x /usr/share/${PN}
|
|
dosym /usr/share/${PN}/minecraft-launcher /usr/bin/${PN}
|
|
chmod
|
|
} |