From 0ad020f89290627e29bf37ac584724f20ba2a152 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 10 Sep 2021 13:07:39 +0200 Subject: [PATCH] www-apps/gotify-server-bin: Add sources for x86, arm, arm64. --- www-apps/gotify-server-bin/Manifest | 5 ++++- .../gotify-server-bin-2.0.23.ebuild | 13 +++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/www-apps/gotify-server-bin/Manifest b/www-apps/gotify-server-bin/Manifest index 8eb2a80..1745303 100644 --- a/www-apps/gotify-server-bin/Manifest +++ b/www-apps/gotify-server-bin/Manifest @@ -1,2 +1,5 @@ -DIST gotify-server-bin-2.0.23.zip 9588107 BLAKE2B 1e8c025029863a9aeb07e0ef7b805befaea405635ce9e46983c29299619fbe2e3fe66b7e33057ba7a9281e72b7baa55780d163066b43a7ddcaf2b0a3aff2d118 SHA512 618ce705cdbbb66eaf834af6720d3205b288cae6b98da1c218b1dc86857633e9ed35de20bfe5a0ce933a7d40c7c1398f520682564c177b082e1c7b518c4c2482 +DIST gotify-server-bin-2.0.23_amd64.zip 9588107 BLAKE2B 1e8c025029863a9aeb07e0ef7b805befaea405635ce9e46983c29299619fbe2e3fe66b7e33057ba7a9281e72b7baa55780d163066b43a7ddcaf2b0a3aff2d118 SHA512 618ce705cdbbb66eaf834af6720d3205b288cae6b98da1c218b1dc86857633e9ed35de20bfe5a0ce933a7d40c7c1398f520682564c177b082e1c7b518c4c2482 +DIST gotify-server-bin-2.0.23_arm.zip 8930701 BLAKE2B f6ac2f13c4b625f0b0a353bb62344d66ce51404f4b8035b7db388e2f2c96c4f8e5c98dffae378d7c53927fbb92614ab05c3dee81c5b2ee82d6ed5c7143476d64 SHA512 db7a608be267be5251eadb69292cd0f601c209ba5dae8b58e20b6acb2b356356eba7e526d02d1629e42ee5e435151be7ac75a01c42f775cda826a497c7bc33f4 +DIST gotify-server-bin-2.0.23_arm64.zip 8899349 BLAKE2B 66e7fe3affbb08631d1ad46b48a03e84a9075053c97af12c833f1d9c00e6761e9c0c6bb520d7a9e8162a112b5a1b7faff40a912c10cd7e1e41b1413c94deb8e3 SHA512 6a17db6a1b4b8a5a4791f1ad9e4bf9e279cfac2dfe2c1aab4a6ab2c39ec3f65cb0baadd02ba96cf3b874e8bdec35586c38d76d9f8a955b6846adda90a28b8aaa DIST gotify-server-bin-2.0.23_config.example.yml 2367 BLAKE2B 185d7af76189813b44927e1310a7b114a9c1001cbb7eede7e0a3a045d17acbd66f5d793d6ec4fe90a486b739c6d041e1b7d90492cff2af0ee30020ac1b426a32 SHA512 64f1f41041934bec3d2cee9113f731eb43d324f102293a6775e7f855f71218696502b91fe2730fe44675a22f5c942a723bf2a0468bad99c94a5f11fd5235b2f3 +DIST gotify-server-bin-2.0.23_x86.zip 9213074 BLAKE2B b0571ed9994f60d45c630a6a11a82f6ec48f4b10bac9bf8a957d5072fafef0505d0e946ccaac7ae9b94de0d5c2b3ae0cf69449372b35fcd62eedcc887c103e52 SHA512 ebfb20aaca0859f59f63f905cf7662961d6bd5c2509eeedd16bea683af85c92939b2841e498cdb567e12aa38c2f5f56721c67fc7d2fad3e9af6e1eb72155753d diff --git a/www-apps/gotify-server-bin/gotify-server-bin-2.0.23.ebuild b/www-apps/gotify-server-bin/gotify-server-bin-2.0.23.ebuild index 42766cc..01e4ad4 100644 --- a/www-apps/gotify-server-bin/gotify-server-bin-2.0.23.ebuild +++ b/www-apps/gotify-server-bin/gotify-server-bin-2.0.23.ebuild @@ -5,8 +5,12 @@ EAPI=8 DESCRIPTION="Simple server for sending and receiving messages in real-time per WebSocket" HOMEPAGE="https://gotify.net/" +# NOTE: Only amd64 is tested. SRC_URI=" - https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-amd64.zip -> ${P}.zip + amd64? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-amd64.zip -> ${P}_amd64.zip ) + x86? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-386.zip -> ${P}_x86.zip ) + arm? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-arm-7.zip -> ${P}_arm.zip ) + arm64? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-arm64.zip -> ${P}_arm64.zip ) https://raw.githubusercontent.com/gotify/server/v${PV}/config.example.yml -> ${P}_config.example.yml " S="${WORKDIR}" @@ -30,7 +34,12 @@ src_prepare() { } src_install() { - newbin gotify-linux-amd64 ${PN} + local myarch="amd64" + use x86 && myarch="x86" + use arm && myarch="arm" + use arm64 && myarch="arm64" + + newbin gotify-linux-${myarch} ${PN} dodoc config.example.yml newinitd "${FILESDIR}/${PN}.initd" ${PN}