2019-07-08 21:29:03 +02:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2018-09-03 17:48:23 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-07-08 21:29:03 +02:00
|
|
|
EAPI=7
|
2018-09-03 17:48:23 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Factorio is a game in which you build and maintain factories."
|
|
|
|
HOMEPAGE="https://www.factorio.com/"
|
|
|
|
SRC_URI="https://www.factorio.com/get-download/0.16.51/headless/linux64 -> ${P}.tar.xz"
|
|
|
|
LICENSE="Factorio"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE=""
|
|
|
|
RDEPEND=">=app-misc/screen-4.6.1"
|
|
|
|
DEPEND=""
|
|
|
|
|
2019-07-08 21:29:03 +02:00
|
|
|
S="${WORKDIR}/factorio"
|
2018-09-03 17:48:23 +02:00
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto /opt/factorio
|
|
|
|
doins -r data
|
2019-07-08 21:29:03 +02:00
|
|
|
doins config-path.cfg
|
2018-09-03 17:48:23 +02:00
|
|
|
exeinto /opt/factorio/bin/x64
|
|
|
|
doexe bin/x64/factorio
|
|
|
|
newinitd "${FILESDIR}"/factorio.initd factorio
|
|
|
|
newconfd "${FILESDIR}"/factorio.confd factorio
|
|
|
|
}
|