summaryrefslogtreecommitdiff
path: root/app-misc
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/zigbee2mqtt/Manifest3
-rw-r--r--app-misc/zigbee2mqtt/zigbee2mqtt-2.8.0.ebuild48
2 files changed, 51 insertions, 0 deletions
diff --git a/app-misc/zigbee2mqtt/Manifest b/app-misc/zigbee2mqtt/Manifest
new file mode 100644
index 0000000..4d610f8
--- /dev/null
+++ b/app-misc/zigbee2mqtt/Manifest
@@ -0,0 +1,3 @@
+DIST zigbee2mqtt-2.8.0-deps.tar.xz 11327256 BLAKE2B 4431101fee09ad39ec33d50daeddb3b091a1cbdf5941bfa38d4a86c2976363f0bd613f353eedfc5607a97f548536dda3277d9bb7e466477bcc4ed8a574d04ee6 SHA512 759614d7b10461d344df44a12e5573a657412f9b24c6bfc8fcd68cc8155e2359a88bb88e88408d15b4a9079ef2f4eba2da612e40d697fc5d1f666a08a0ff64fa
+DIST zigbee2mqtt-2.8.0-dist.tar.xz 170384 BLAKE2B 4c3364b4330e7759424bc41294c22f62a72acd134371b36ef22f1c71e3acacb1215c777152c731f6312604510515322ce406ccdb75263bbc79d2d8543120df3b SHA512 5255dfb7bdcd5082b9b42d423d4c74d0d59460dc99ae9876aea1bdbd3158d8384b5eae37622ed7acb82b8979617c5f60f17161b1594af5a1fb75fd3c1e2de02c
+DIST zigbee2mqtt-2.8.0.tar.gz 942607 BLAKE2B 53014fba4fc7f799747bd1fd9be846811e46c2adbc4ed9a02568c8010bdc8407c88c8eb741e19c8c38c47ed817be049c73b77aef8e081c9143dc6ec0f95188f6 SHA512 9a38441ea469b6ab40fa16242c820c7b0078fdf9bd9bccc4fd4d77cea41b6e5ceb12dc46d18d988375e99e9898811d820c2e9b11eef5c866d50201b7511d73a7
diff --git a/app-misc/zigbee2mqtt/zigbee2mqtt-2.8.0.ebuild b/app-misc/zigbee2mqtt/zigbee2mqtt-2.8.0.ebuild
new file mode 100644
index 0000000..b357d12
--- /dev/null
+++ b/app-misc/zigbee2mqtt/zigbee2mqtt-2.8.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Zigbee to MQTT bridge"
+HOMEPAGE="https://github.com/Koenkk/zigbee2mqtt"
+SRC_URI="https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+="
+ https://share.terinstock.com/${P}-deps.tar.xz
+ https://share.terinstock.com/${P}-dist.tar.xz
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+RDEPEND="net-libs/nodejs"
+
+src_install() {
+ local find_dirs=(
+ -iwholename '*.github' -o
+ -iwholename '*.idea' -o
+ -iwholename '*.tscache' -o
+ -iwholename '*/man' -o
+ -iwholename '*/test' -o
+ -iwholename '*/scripts' -o
+ -iwholename '*/git-hooks' -o
+ -iwholename '*/android-arm' -o
+ -iwholename '*/android-arm64' -o
+ -iwholename '*/linux-armvy' -o
+ -iwholename '*/linux-armv7' -o
+ -iwholename '*/linux-arm' -o
+ -iwholename '*/win32-arm64' -o
+ -iwholename '*/win32-ia32' -o
+ -iwholename '*/win32-x64' -o
+ -iwholename '*/darwin-x64+arm64'
+ )
+
+ find "${WORKDIR}"/node_modules -type d \( "${find_dirs[@]}" \) -exec rm -rvf {} +
+
+ insinto "/usr/share/${PN}"
+ doins -r "${WORKDIR}"/node_modules "${WORKDIR}"/dist index.js package.json
+ exeinto "/usr/share/${PN}"
+ exeopts -m755
+ doexe cli.js
+ dosym -r "/usr/share/${PN}/cli.js" "/usr/bin/zigbee2mqtt"
+}