From e27a3dcc848c1b15096ff8423d5b1088757f7954 Mon Sep 17 00:00:00 2001 From: eroen Date: Sun, 18 Sep 2016 18:02:51 +0200 Subject: steam.eclass - move steamcli to separate package --- net-misc/steamcmd-bin/Manifest | 1 + net-misc/steamcmd-bin/metadata.xml | 10 ++++++ net-misc/steamcmd-bin/steamcmd-bin-0.ebuild | 49 +++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 net-misc/steamcmd-bin/Manifest create mode 100644 net-misc/steamcmd-bin/metadata.xml create mode 100644 net-misc/steamcmd-bin/steamcmd-bin-0.ebuild (limited to 'net-misc') diff --git a/net-misc/steamcmd-bin/Manifest b/net-misc/steamcmd-bin/Manifest new file mode 100644 index 00000000..1857bb69 --- /dev/null +++ b/net-misc/steamcmd-bin/Manifest @@ -0,0 +1 @@ +DIST steamcmd_linux.tar.gz 3170982 SHA256 c7e382f81d5a44036ebb21fd6aa77f68fb4ac0b6d6f4c209ef389b05eba0f9b8 SHA512 747c1cda5cb11e1533b242785fb2d83d8f4b11506e46884c0956769859854ce0c5f450a195f60ffc2da9381a220857f3183c87ee0cfb85d56dc3dfea5db9a155 WHIRLPOOL aaf2ac96bb2ca506323775d897ea6e5dc57a361cbef310941623bead1b7615cdd3d6c7920b9ed4a2eab84a382e5fe4d6b36ceb2bb5701d76ede468a97bb0c68b diff --git a/net-misc/steamcmd-bin/metadata.xml b/net-misc/steamcmd-bin/metadata.xml new file mode 100644 index 00000000..a94dac11 --- /dev/null +++ b/net-misc/steamcmd-bin/metadata.xml @@ -0,0 +1,10 @@ + + + + + eroen-overlay@occam.eroen.eu + eroen + + + + diff --git a/net-misc/steamcmd-bin/steamcmd-bin-0.ebuild b/net-misc/steamcmd-bin/steamcmd-bin-0.ebuild new file mode 100644 index 00000000..124e3b9a --- /dev/null +++ b/net-misc/steamcmd-bin/steamcmd-bin-0.ebuild @@ -0,0 +1,49 @@ +# By eroen , 2016 +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# $Id$ + +EAPI=6 + +inherit linux-info + +DESCRIPTION="Used by steam.eclass" +HOMEPAGE="https://developer.valvesoftware.com/wiki/SteamCMD" +SRC_URI="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" +LICENSE="all-rights-reserved" +RESTRICT="bindist mirror" +S=$WORKDIR + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-devel/gcc[cxx] + amd64? ( sys-devel/gcc[cxx,multilib] )" + +pkg_setup() { + # CONFIG_PAX_ELFRELOCS must not be disabled (if present). + # Textrels are all over the place :( + if linux_config_exists; then + if [[ -n $(linux_chkconfig_string PAX_ELFRELOCS) ]] && \ + ! linux_chkconfig_present PAX_ELFRELOCS && + [[ -z $I_KNOW_WHAT_I_AM_DOING ]]; then + die "$PN needs support for x86 TEXTRELs to run" + fi + else + ewarn "Could not find kernel config. The install will fail later if" + ewarn "x86 TEXTRELs are not supported on the system." + fi +} + +src_unpack() { + default +} + +src_install() { + exeinto /opt/steamcmd/linux32 + doexe linux32/steamcmd + exeinto /opt/steamcmd + doexe steamcmd.sh steam.sh +} -- cgit v1.2.1