parent
eff6338de7
commit
3a1851915a
7
PKGBUILD
7
PKGBUILD
|
@ -40,11 +40,8 @@ package() {
|
||||||
# Install binary
|
# Install binary
|
||||||
install -Dm755 system76-power-gui "$pkgdir/usr/bin/system76-power-gui"
|
install -Dm755 system76-power-gui "$pkgdir/usr/bin/system76-power-gui"
|
||||||
|
|
||||||
# Create appropriate desktop entry based on system
|
# Install for Wayland
|
||||||
if [ -n "${WAYLAND_DISPLAY}" ] || [ "${XDG_SESSION_TYPE}" = "wayland" ] || [ -n "${WAYLAND_SOCKET}" ]; then
|
install -Dm644 system76-power-gui.desktop "$pkgdir/usr/share/applications/system76-power-gui.desktop"
|
||||||
# Install Wayland desktop entry
|
|
||||||
install -Dm644 system76-power-gui.desktop "$pkgdir/usr/share/applications/system76-power-gui.desktop"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install polkit rules
|
# Install polkit rules
|
||||||
install -Dm644 90-system76-power.rules "$pkgdir/usr/share/polkit-1/rules.d/90-system76-power.rules"
|
install -Dm644 90-system76-power.rules "$pkgdir/usr/share/polkit-1/rules.d/90-system76-power.rules"
|
||||||
|
|
Loading…
Reference in New Issue