2020-04-30 14:01:05 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2020-04-30 14:11:24 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
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/${PV}/headless/linux64 -> ${P}.tar.xz"
|
|
|
|
LICENSE="Factorio"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
2020-04-30 14:25:42 +02:00
|
|
|
DEPEND="
|
2020-04-30 14:01:05 +02:00
|
|
|
acct-group/factorio
|
|
|
|
acct-user/factorio
|
|
|
|
"
|
|
|
|
|
|
|
|
RESTRICT="bindist mirror"
|
|
|
|
|
2020-04-30 14:11:24 +02:00
|
|
|
S="${WORKDIR}/factorio"
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto /opt/factorio
|
|
|
|
doins -r data
|
|
|
|
doins config-path.cfg
|
|
|
|
exeinto /opt/factorio/bin/x64
|
|
|
|
doexe bin/x64/factorio
|
|
|
|
newinitd "${FILESDIR}"/factorio.initd factorio
|
|
|
|
newconfd "${FILESDIR}"/factorio.confd factorio
|
|
|
|
}
|