Skip to content

Commit

Permalink
games-util/gamescope-session-hyprland: fix qa notice
Browse files Browse the repository at this point in the history
Signed-off-by: Gonçalo Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed Oct 28, 2023
1 parent 3f242ce commit 3fd82b1
Showing 1 changed file with 37 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit git-r3
inherit git-r3 xdg-utils
EGIT_REPO_URI="https://github.com/MrDuartePT/deckifier-hyprland.git"
DESCRIPTION="Steam Deck UI - On Hyprland compositor"
HOMEPAGE="https://github.com/MrDuartePT/deckifier-hyprland"
Expand All @@ -17,14 +17,34 @@ RDEPEND="gui-wm/gamescope
"

src_install() {
cp -rv "${S}/rootfs/usr" "${D}"
cp -rv "${S}/rootfs//etc" "${D}"
insinto "etc/"
doins -r "${S}/rootfs/etc/systemd"
doins -r "${S}/rootfs/etc/greetd"
doins -r "${S}/rootfs/etc/polkit-1"
insinto "usr/"
doins -r "${S}/rootfs/usr/lib"
doins -r "${S}/rootfs/usr/share"

#File inside /rootfs/usr/bin
dobin "${S}/rootfs/usr/bin/export-gpu"
dobin "${S}/rootfs/usr/bin/gamescope-session"
dobin "${S}/rootfs/usr/bin/steamos-session-select"
dobin "${S}/rootfs/usr/bin/steam-http-loader"
dobin "${S}/rootfs/usr/bin/jupiter-biosupdate"
dobin "${S}/rootfs/usr/bin/steamos-update"

#File inside /rootfs/usr/bin/steamos-polkit-helpers
insinto "usr/libexec/"
doins -r "${S}/rootfs/usr/libexec/steamos-polkit-helpers"

#Fix permission
fperms +x "/usr/bin/jupiter-biosupdate"
fperms +x "/usr/bin/steamos-update"
fperms +x "/usr/bin/steamos-session-select"
fperms a+x "/usr/share/applications/org.valve.gamescope.desktop"
fperms +x "/usr/lib/os-session-select"
fperms +x "/usr/share/gamescope-session/gamescope-session-script"
fperms +x "/usr/libexec/steamos-polkit-helpers/jupiter-biosupdate"
fperms +x "/usr/libexec/steamos-polkit-helpers/steamos-update"
fperms +x "/usr/libexec/steamos-polkit-helpers/steamos-set-hostname"
fperms +x "/usr/libexec/steamos-polkit-helpers/steamos-set-timezone"
fperms +x "/usr/libexec/steamos-polkit-helpers/steamos-priv-write"
}

post_intall() {
Expand All @@ -36,3 +56,13 @@ post_intall() {
ewarn "Repo also have instrution for non Hyprland user (you need to bakcup usr/lib/os-session-select on any update or create a patch for your version)"
ewarn "More info in the readme: https://github.com/MrDuartePT/deckifier-hyprland/blob/main/README.md"
}

pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}

pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}

0 comments on commit 3fd82b1

Please sign in to comment.