Skip to content

Commit

Permalink
games-util/steam: new package, add 0.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: James Calligeros <[email protected]>
  • Loading branch information
chadmed committed Dec 14, 2024
1 parent ccd6cc5 commit 8b6dae7
Show file tree
Hide file tree
Showing 4 changed files with 392 additions and 0 deletions.
2 changes: 2 additions & 0 deletions games-util/steam/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST steam-aarch64.tar.gz 4756 BLAKE2B b6dddcdb31759bb6be86749a48657ab2f14a3c4417410de7dcedabb497b1e09db2d2d098606b32e36d1d1192b23f8ed9a7fec9d1700df8ace4bf2ae490fedd88 SHA512 aa5ab04633f41edfa5f0f6e72fab163bfcdfadb6619623e43aa17dd88dbabdfb9cebd7ade4c3daeb45d13d19626bf654a23df3e760fff580e2b15e804efa2f8f
DIST steam_1.0.0.81.tar.gz 4034361 BLAKE2B 3bd5deaa2aab8988bb071af3b2400699440af23795bad55f2040581431e2fe1aa02221bb4e4455677207689e9c7383cdf09290fd9b50334ce1ffabcd6c439f4b SHA512 adbb89f3af069d9ff417ca7789a3d275e6485212ec8e08a4b2d110a2f370fc6d1a564895ba58b0548ea1521ee90029a4bb397ef86f29e093907abd562f65d07f
14 changes: 14 additions & 0 deletions games-util/steam/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>James Calligeros</name>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
</maintainer>
<upstream>
<remote-id type="github">chadmed/steam-aarch64</remote-id>
</upstream>
</pkgmetadata>
67 changes: 67 additions & 0 deletions games-util/steam/steam-0.0.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop xdg-utils

STEAMVER="1.0.0.81"
ARM64_WRAPPER_COMMIT="fb3e8aeaffe5bb374b34f2eacc91130a05b17b21"

DESCRIPTION="Steam launcher bundled with AArch64/ARM64 wrapper for Asahi Linux systems"
HOMEPAGE="
https://steampowered.com/
https://github.com/chadmed/steam-aarch64
"

SRC_URI="
https://repo.steampowered.com/steam/archive/stable/steam_${STEAMVER}.tar.gz
https://github.com/chadmed/steam-aarch64/archive/${ARM64_WRAPPER_COMMIT}.tar.gz -> ${PN}-aarch64.tar.gz
"

S="${WORKDIR}"

LICENSE="GPL-2+ ValveSteamLicense MIT"
SLOT="0"

KEYWORDS="-* ~arm64"

RDEPEND="
app-emulation/FEX
app-emulation/muvm
gnome-extra/zenity
"

src_unpack() {
default
}

src_configure() {
true
}
src_compile() {
true
}

src_install() {
cd "${WORKDIR}/steam-launcher" || die
emake DESTDIR="${D}" \
install-bin \
install-docs \
install-icons \
install-bootstrap \
install-desktop \
install-appdata

# Install the wrapper manually
cd "${WORKDIR}/steam-aarch64-${ARM64_WRAPPER_COMMIT}" || die
dobin {steam-aarch64,steam-muvm}
newmenu steam-aarch64.desktop steam.desktop
}

pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
einfo "Steam has been installed. To launch steam, use the desktop entry or"
einfo "run /usr/bin/steam-aarch64 from a tty."
}
Loading

0 comments on commit 8b6dae7

Please sign in to comment.