mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
x11-wm/firefox-i3-workspaces: new package
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
1
x11-wm/firefox-i3-workspaces/Manifest
Normal file
1
x11-wm/firefox-i3-workspaces/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST 0.10.tar.gz 54784 BLAKE2B 88f61133a04fc0a13eee72a12ab222d4378bf4daa02fab812a6ea61ef167fd19c4ca9b7571fdb8d762b82cbbd0932b0fbd3b621748481ead77f425e8d879a1f2 SHA512 45c97cd37e436d2b61767a1ca62f96bc6efa650829f587329008189d1b87f6af80fc10c7046b5c788bc9ae932d415c2b6d8f26a3cede0841e055f6ce8bd90ffb
|
||||||
13
x11-wm/firefox-i3-workspaces/files/path-adapt.patch
Normal file
13
x11-wm/firefox-i3-workspaces/files/path-adapt.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/host/i3_workspaces.json b/host/i3_workspaces.json
|
||||||
|
index 3e1c6e5..14288b2 100644
|
||||||
|
--- a/host/i3_workspaces.json
|
||||||
|
+++ b/host/i3_workspaces.json
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
{
|
||||||
|
"name": "i3_workspaces",
|
||||||
|
"description": "Communicate with i3 about which workspaces Firefox windows are on",
|
||||||
|
- "path": "/home/yuri/projects/firefox-i3-workspaces/host/i3_workspaces.py",
|
||||||
|
+ "path": "/usr/lib/i3_workspaces.py",
|
||||||
|
"type": "stdio",
|
||||||
|
"allowed_extensions": ["i3-workspaces@yurikhan.space"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Restore Firefox windowS to correct i3 workspaceS, helper web extension is needed"
|
||||||
|
HOMEPAGE="https://github.com/yurikhan/firefox-i3-workspaces"
|
||||||
|
SRC_URI="https://github.com/yurikhan/$PN/archive/refs/tags/$PV.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT=0
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
x11-wm/i3
|
||||||
|
dev-python/i3ipc
|
||||||
|
"
|
||||||
|
|
||||||
|
# S="${DISTDIR}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"$FILESDIR/path-adapt.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
path_py="$ED/usr/lib/"
|
||||||
|
mkdir -p $path_py || die
|
||||||
|
cp host/i3_workspaces.py $path_py || die
|
||||||
|
# Not dobin because this is not for the user CLI - only Firefox should call this
|
||||||
|
|
||||||
|
path_json=/usr/lib64/mozilla/native-messaging-hosts/
|
||||||
|
mkdir -p "$ED/$path_json" || die
|
||||||
|
cp host/i3_workspaces.json "$ED$path_json" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo "Install browser extension from https://addons.mozilla.org/en-US/firefox/addon/i3-workspaces/"
|
||||||
|
}
|
||||||
12
x11-wm/firefox-i3-workspaces/metadata.xml
Normal file
12
x11-wm/firefox-i3-workspaces/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<name>Vitaly Zdanevich</name>
|
||||||
|
<email>zdanevich.vitaly@ya.ru</email>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="gitlab">yurikhan/firefox-i3-workspaces</remote-id>
|
||||||
|
<bugs-to>https://github.com/yurikhan/firefox-i3-workspaces/issues</bugs-to>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user