2023-04-26 11:07:08 +02:00
|
|
|
SUMMARY = "GTK3-based dock for hyprland."
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=fffa55ad1c828db5e334374fb1182530"
|
|
|
|
|
|
|
|
DEPENDS = " \
|
|
|
|
gtk+3 \
|
|
|
|
gtk-layer-shell \
|
|
|
|
"
|
|
|
|
RDEPENDS:${PN} = "go-runtime"
|
|
|
|
|
|
|
|
GO_IMPORT = "github.com/nwg-piotr/nwg-dock-hyprland.git"
|
|
|
|
|
2024-05-21 15:51:47 +02:00
|
|
|
SRC_URI = "git://${GO_IMPORT};destsuffix=src/${GO_IMPORT};nobranch=1;protocol=https"
|
2023-04-26 11:07:08 +02:00
|
|
|
|
2024-08-12 07:33:51 +02:00
|
|
|
PV = "0.2.1"
|
2024-08-22 08:30:28 +02:00
|
|
|
SRCREV = "95225b4bd747c02b1ed7be49f52893a9fd0bcad3"
|
2024-05-29 08:38:03 +02:00
|
|
|
S = "${WORKDIR}/sources"
|
|
|
|
UNPACKDIR = "${S}"
|
2023-04-26 11:07:08 +02:00
|
|
|
|
|
|
|
inherit go go-mod pkgconfig
|
|
|
|
|
|
|
|
GO_INSTALL = "${GO_IMPORT}"
|
2024-05-07 23:31:30 +02:00
|
|
|
GO_LINKSHARED = ""
|
2023-04-26 11:07:08 +02:00
|
|
|
|
|
|
|
do_install:append() {
|
|
|
|
# remove precompiled x86 binaries
|
|
|
|
rm -rf ${D}${libdir}/go/src/${GO_IMPORT}/bin
|
|
|
|
rm -rf ${D}${libdir}/go/pkg/mod/github.com/dlasky/gotk3-layershell*/example
|
2024-06-13 18:10:24 +02:00
|
|
|
install -d ${D}${datadir}/nwg-dock-hyprland ${D}${systemd_user_unitdir}
|
2023-05-06 11:40:35 +02:00
|
|
|
install -m 0644 ${S}/src/${GO_IMPORT}/config/style.css ${D}${datadir}/nwg-dock-hyprland
|
|
|
|
cp -rf ${S}/src/${GO_IMPORT}/images ${D}${datadir}/nwg-dock-hyprland
|
2024-06-13 18:10:24 +02:00
|
|
|
cat >${D}${systemd_user_unitdir}/nwg-dock-hyprland.service <<EOF
|
|
|
|
[Unit]
|
|
|
|
Description=nwg-dock-hyprland
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
Type=simple
|
|
|
|
ExecStart= /usr/bin/nwg-dock-hyprland -mb 6 -d -hd 2000
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=graphical-session.target
|
|
|
|
EOF
|
2023-04-26 11:07:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_compile[network] = "1"
|
2024-06-13 18:10:24 +02:00
|
|
|
|
|
|
|
FILES:${PN} += "${systemd_user_unitdir}"
|