Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrreo authored Oct 19, 2023
1 parent 1d5e80e commit 3ee9605
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
export DH_VERBOSE = 1

## === Set paths env vars ===
PREFIX = /usr/local
LIBEXEC = /usr/lib
SHARE = /usr/share

## Source directory, called upon by $(srcdir)
srcdir = $(shell debian/scripts/get_pwd.sh)
Expand Down Expand Up @@ -71,10 +74,12 @@ override_dh_build:
override_dh_auto_install:

override_dh_install:
install -d $(pkgdir)/usr/bin
cp $(srcdir)/hyprland-share-picker/build/hyprland-share-picker $(pkgdir)/usr/bin/hyprland-share-picker
rm -Rf $(pkgdir)/usr/share/hyprland-protocols
rm -f $(pkgdir)/usr/share/pkgconfig/hyprland-protocols.pc
cp -f ./build/hyprland-share-picker/hyprland-share-picker $(pkgdir)/usr/bin
cp -f ./build/xdg-desktop-portal-hyprland $(pkgdir)/${LIBEXEC}/
cp -f ./hyprland.portal $(pkgdir)/${SHARE}/xdg-desktop-portal/portals/
sed "s|@libexecdir@|${LIBEXEC}|g" ./org.freedesktop.impl.portal.desktop.hyprland.service.in > $(pkgdir)/${SHARE}/dbus-1/services/org.freedesktop.impl.portal.desktop.hyprland
sed "s|@libexecdir@|${LIBEXEC}|g" ./contrib/systemd/xdg-desktop-portal-hyprland.service.in > $(pkgdir)/${LIBEXEC}/systemd/user/xdg-desktop-portal-hyprland.service
chmod 755 $(pkgdir)/${LIBEXEC}/xdg-desktop-portal-hyprland
## === End end of region ===

## This here will start the build:
Expand Down

0 comments on commit 3ee9605

Please sign in to comment.