diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-04-10 13:10:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-04-10 13:10:20 +0100 |
commit | bda1c1728997079cb257d9b00b2be47735e636b7 (patch) | |
tree | 00692fce412e9e2a4ac5ad52c0908aac94ae5ba2 | |
parent | dbcad6e486ed17c022b44e57841cc9de3baeae91 (diff) |
make steam run as if it's running in ubuntu
-rwxr-xr-x | app-emulation/steam/files/kogaion-steam | 11 | ||||
-rw-r--r-- | app-emulation/steam/files/kogaion-steam.patch | 86 | ||||
-rw-r--r-- | app-emulation/steam/steam-1.0.0.45-r2.ebuild (renamed from app-emulation/steam/steam-1.0.0.45-r1.ebuild) | 6 | ||||
-rw-r--r-- | app-emulation/steam/steam-1.0.0.45.ebuild | 41 |
4 files changed, 103 insertions, 41 deletions
diff --git a/app-emulation/steam/files/kogaion-steam b/app-emulation/steam/files/kogaion-steam new file mode 100755 index 00000000..c243c2b2 --- /dev/null +++ b/app-emulation/steam/files/kogaion-steam @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +main () { + export LD_PRELOAD='/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6' + if [[ "$(lsmod|grep nvidia)" ]] ; then + export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib' + fi + export DISPLAY=:0 + steam +} +main diff --git a/app-emulation/steam/files/kogaion-steam.patch b/app-emulation/steam/files/kogaion-steam.patch new file mode 100644 index 00000000..0a1470ec --- /dev/null +++ b/app-emulation/steam/files/kogaion-steam.patch @@ -0,0 +1,86 @@ +diff -Nur a/steam.desktop b/steam.desktop +--- a/steam.desktop 2013-03-01 23:29:41.000000000 +0000 ++++ b/steam.desktop 2016-04-10 13:07:27.191010332 +0100 +@@ -1,7 +1,7 @@ + [Desktop Entry] + Name=Steam + Comment=Application for managing and playing games on Steam +-Exec=/usr/bin/steam %U ++Exec=/usr/bin/kogaion-steam %U + Icon=steam + Terminal=false + Type=Application +@@ -19,7 +19,7 @@ + Name[ru]=Магазин + Name[zh_CN]=商店 + Name[zh_TW]=商店 +-Exec=steam steam://store ++Exec=kogaion-steam steam://store + + [Desktop Action Community] + Name=Community +@@ -30,7 +30,7 @@ + Name[ru]=Сообщество + Name[zh_CN]=社区 + Name[zh_TW]=社群 +-Exec=steam steam://url/SteamIDControlPage ++Exec=kogaion-steam steam://url/SteamIDControlPage + + [Desktop Action Library] + Name=Library +@@ -42,7 +42,7 @@ + Name[ru]=Библиотека + Name[zh_CN]=库 + Name[zh_TW]=遊戲庫 +-Exec=steam steam://open/games ++Exec=kogaion-steam steam://open/games + + [Desktop Action Servers] + Name=Servers +@@ -54,7 +54,7 @@ + Name[ru]=Серверы + Name[zh_CN]=服务器 + Name[zh_TW]=伺服器 +-Exec=steam steam://open/servers ++Exec=kogaion-steam steam://open/servers + + [Desktop Action Screenshots] + Name=Screenshots +@@ -64,7 +64,7 @@ + Name[ru]=Скриншоты + Name[zh_CN]=截图 + Name[zh_TW]=螢幕擷圖 +-Exec=steam steam://open/screenshots ++Exec=kogaion-steam steam://open/screenshots + + [Desktop Action News] + Name=News +@@ -76,7 +76,7 @@ + Name[ru]=Новости + Name[zh_CN]=新闻 + Name[zh_TW]=新聞 +-Exec=steam steam://open/news ++Exec=kogaion-steam steam://open/news + + [Desktop Action Settings] + Name=Settings +@@ -88,11 +88,11 @@ + Name[ru]=Настройки + Name[zh_CN]=设置 + Name[zh_TW]=設定 +-Exec=steam steam://open/settings ++Exec=kogaion-steam steam://open/settings + + [Desktop Action BigPicture] + Name=Big Picture +-Exec=steam steam://open/bigpicture ++Exec=kogaion-steam steam://open/bigpicture + + [Desktop Action Friends] + Name=Friends +@@ -104,4 +104,4 @@ + Name[ru]=Друзья + Name[zh_CN]=好友 + Name[zh_TW]=好友 +-Exec=steam steam://open/friends ++Exec=kogaion-steam steam://open/friends diff --git a/app-emulation/steam/steam-1.0.0.45-r1.ebuild b/app-emulation/steam/steam-1.0.0.45-r2.ebuild index ee95e2ed..5d2ebc9d 100644 --- a/app-emulation/steam/steam-1.0.0.45-r1.ebuild +++ b/app-emulation/steam/steam-1.0.0.45-r2.ebuild @@ -36,8 +36,14 @@ RDEPEND=" S=${WORKDIR}/${PN} +src_prepare() { + epatch "${FILESDIR}"/kogaion-${PN}.patch +} + src_install() { emake DESTDIR="${D}" install || die "make install failed" + exeinto /usr/bin || die + doexe ${FILESDIR}/kogaion-steam || die rm -rf "${D}"/usr/bin/steamdeps || die dosym /bin/true /usr/bin/steamdeps || die } diff --git a/app-emulation/steam/steam-1.0.0.45.ebuild b/app-emulation/steam/steam-1.0.0.45.ebuild deleted file mode 100644 index 6a1e1ba2..00000000 --- a/app-emulation/steam/steam-1.0.0.45.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -EAPI=5 - -inherit eutils - -DESCRIPTION="Digital distribution client bootstrap package" -HOMEPAGE="http://steampowered.com/" -SRC_URI="http://repo.steampowered.com/${PN}/pool/${PN}/s/${PN}/${PN}_${PV}.tar.gz" - -LICENSE="custom" -SLOT="0" -KEYWORDS="amd64 x86" - -EMUL_X86_VER=20120520 - -RDEPEND=" - virtual/ttf-fonts - dev-util/desktop-file-utils - x11-themes/hicolor-icon-theme - net-misc/curl - sys-apps/dbus - media-libs/freetype - x11-libs/gdk-pixbuf - gnome-extra/zenity - amd64? ( - >=app-emulation/emul-linux-x86-xlibs-${EMUL_X86_VER} - >=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER} - >=app-emulation/emul-linux-x86-opengl-${EMUL_X86_VER} - ) - x86? ( - media-libs/alsa-lib - media-libs/mesa - x11-libs/libX11 - )" - -S=${WORKDIR}/${PN} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - rm -rf "${D}"/usr/bin/steamdeps || die # we don't use apt-get - dosym /bin/true /usr/bin/steamdeps || die # create blank steamdeps -} |