This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/games-server/factorio-server/factorio-server-0.16.51.ebuild

29 lines
664 B
Bash
Raw Normal View History

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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=""
src_unpack() {
default_src_unpack
mv factorio ${P}
}
src_install() {
insinto /opt/factorio
doins -r bin
doins -r data
doins -r config-path.cfg
newinitd "${FILESDIR}"/factorio.initd factorio
newconfd "${FILESDIR}"/factorio.confd factorio
}