summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2025-11-28 00:33:07 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2025-11-28 00:50:58 +0100
commit89bac1076198c8e2ba5b8e5647257f0bfa82870d (patch)
treeff9092e5f6c0b0db8545d145fa8c3174bc3a1946
parentapp-misc/rmqtt: add DEPENDS (diff)
downloadebuilds-89bac1076198c8e2ba5b8e5647257f0bfa82870d.tar.xz
app-misc/zigbee2mqtt: new package, add 2.6.3HEADtrunk
-rw-r--r--app-misc/zigbee2mqtt/Manifest3
-rw-r--r--app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.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..748a973
--- /dev/null
+++ b/app-misc/zigbee2mqtt/Manifest
@@ -0,0 +1,3 @@
+DIST zigbee2mqtt-2.6.3-deps.tar.xz 11037756 BLAKE2B e037978334e925dad178fb39a346f31f914df669a1c84e9b8cf710af01c701c14a415ed6dc5c48d6d10cf1da49cbc6f2dd89fb2de570509717e579d433b2a921 SHA512 4c7a05c515ce01525c94c36fb4783b0d458b6c91467c32706558f6d680862612c4030951757d4fbc09d6f69434b6e8eed601277693176d91f2c9958cdd5b5a0d
+DIST zigbee2mqtt-2.6.3-dist.tar.xz 166664 BLAKE2B 47cf9a62467eb15a642b37a749d0098f1d0f2ca86568e835ca03d0eef7e5e3d38543ec16468167a6ec4cd2845b96e61677e2674b0da0103be32ef16b594d0cb3 SHA512 16851b3843380765434cae349668c9c351adc070819f358d77f8a0db67668f0be1000107cb8e6052d318ed5dc4ca2ecdc63ad1acb058c781d2ca075f8f7975a9
+DIST zigbee2mqtt-2.6.3.tar.gz 926925 BLAKE2B 61803be7e026c284efd05539e87dc514484a6af92f0dd64324acab4119ce3ccc9de407e84e5528d21586367a8875b8fe6301898ac160efab084c12b801ae360c SHA512 74ddf2be8735c581eaa25b97f26c33b1a550855705fb4761b3bc7a93cef7e212f419d4c5df639458626b97f33dfce86ae478d1e885e9f980aaff9e01b0a4e625
diff --git a/app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild b/app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild
new file mode 100644
index 0000000..a38c593
--- /dev/null
+++ b/app-misc/zigbee2mqtt/zigbee2mqtt-2.6.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 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"
+}