From 5555f083e56e57e743330f8ce20b44c441a25da5 Mon Sep 17 00:00:00 2001 From: xz-dev Date: Sat, 11 Nov 2023 14:13:03 +0800 Subject: [PATCH] app-office/anytype-bin: new package, add 0.35.0 Signed-off-by: xz-dev --- app-office/anytype-bin/Manifest | 2 + .../anytype-bin/anytype-bin-0.35.0.ebuild | 50 +++++++++++++++++ app-office/anytype-bin/metadata.xml | 15 +++++ licenses/ASAL-1.0 | 55 +++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 app-office/anytype-bin/Manifest create mode 100644 app-office/anytype-bin/anytype-bin-0.35.0.ebuild create mode 100644 app-office/anytype-bin/metadata.xml create mode 100644 licenses/ASAL-1.0 diff --git a/app-office/anytype-bin/Manifest b/app-office/anytype-bin/Manifest new file mode 100644 index 00000000000..57d18d82b96 --- /dev/null +++ b/app-office/anytype-bin/Manifest @@ -0,0 +1,2 @@ +DIST Anytype-0.35.0.AppImage 296686019 BLAKE2B be5317814c65be0ff08120591d1d5504f50befdfa20218284a8b2ab1dd94abe9415cdd8e16d47f686eefccd9e242aacd7ac6ef50b7d8d706cf557cabb2e975d5 SHA512 c9fac76c27510197d190603932690fd7f1e42cc534d01976c972d736aa5c3064706bab8d9cebafca78ab89e33499501aa748d4ebab29abb12a930216c762461a +DIST anytype_0.35.0_amd64.deb 256539964 BLAKE2B c8bd54666595b077abe894694313ee76ac7a97c16d01a1aaffe91d76768f6dd5b767ecffcbe8761fd1907e79ca4c3130c833a21ddb2deaef61814c6138df2423 SHA512 40aa1365bd8a4596b17acb9b5be53c65863b91c3d439b717fca2793faa9544120bd3517324d6e099ed0b871902493dddb75eb1f1d906e527d0e29668b63923aa diff --git a/app-office/anytype-bin/anytype-bin-0.35.0.ebuild b/app-office/anytype-bin/anytype-bin-0.35.0.ebuild new file mode 100644 index 00000000000..2d0931a8c19 --- /dev/null +++ b/app-office/anytype-bin/anytype-bin-0.35.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg-utils + +DESCRIPTION="A notebook based on p2p network" +HOMEPAGE="https://anytype.io" +SRC_URI="https://anytype-release.fra1.cdn.digitaloceanspaces.com/Anytype-${PV}.AppImage + https://anytype-release.fra1.cdn.digitaloceanspaces.com/anytype_${PV}_amd64.deb" + +LICENSE="ASAL-1.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RESTRICT="strip" + +RDEPEND="sys-fs/fuse:0" +BDEPEND="app-arch/dpkg" + +S="${WORKDIR}" + +QA_PRESTRIPPED="*" + +src_unpack() { + cp "${DISTDIR}/Anytype-$PV.AppImage" anytype-bin || die +} + +src_prepare() { + default + dpkg -x "${DISTDIR}"/anytype_${PV}_amd64.deb . || die "dpkg icon extraction failed" + sed -i 's|Exec=/opt/Anytype/anytype %U|Exec=anytype-bin %U|g' usr/share/applications/anytype.desktop || + die "Sed Exec command failed" +} + +src_install() { + dobin anytype-bin + doicon usr/share/icons/hicolor/0x0/apps/anytype.png || die "Icon installation failed" + domenu usr/share/applications/anytype.desktop || die "Desktop file installation failed" +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} diff --git a/app-office/anytype-bin/metadata.xml b/app-office/anytype-bin/metadata.xml new file mode 100644 index 00000000000..fca6fefa293 --- /dev/null +++ b/app-office/anytype-bin/metadata.xml @@ -0,0 +1,15 @@ + + + + + xiangzhedev@gmail.com + xz-dev + + + https://community.anytype.io/c/bug-reports + + https://community.anytype.io/c/news-announcements/release-notes + anyproto/anytype-ts + + diff --git a/licenses/ASAL-1.0 b/licenses/ASAL-1.0 new file mode 100644 index 00000000000..f98ef442aa1 --- /dev/null +++ b/licenses/ASAL-1.0 @@ -0,0 +1,55 @@ +Any Source Available License 1.0 + +This license contains the terms and conditions under which Any Association +makes available its Software. Your use of the Software is subject to these +terms and conditions. + +Any Association grants you (“Licensee”) a license to use, modify, and +redistribute the Software, but only +(a) for Non-Commercial Use, or (b) for Commercial Use in Allowed Networks. + +If Licensee makes available a copy of the Software to any third party, +the Software must be subject to the terms of this license only, and Licensee +must provide a copy of this license to that third party. +If Licensee makes changes or additions to the Software, Licensee may license +those changes or additions under terms of your choice, but Licensee cannot +change the license for the Software. + +These terms do not allow Licensee to sublicense or transfer any of Licensee’s +rights to anyone else. These terms do not imply any other licenses not +expressly granted in this license. + +If Licensee violates any of these terms, or uses the Software in a way not +authorized under this license, the license granted to Licensee ends +immediately. +If Licensee makes, or authorizes any other person to make, any written claim +that the Software, or any other Any Association Product, infringes or +contributes to infringement of any patent, all rights granted to Licensee +under this license end immediately. + +As far as the law allows, the Software is provided AS IS, +without any warranty or condition, and Any Association will not be liable +to Licensee for any damages arising out of these terms or the use or nature +of the Software, under any kind of legal claim. + +Terms in this license are used as follows: + +A “Any Association Product” is any product or service offered by +Any Association or its affiliates. + +“Non-Commercial Use” means personal, academic, scientific, or research and +development use, or evaluating the Software, but does not include uses where +the Software facilitates any transaction of economic value other than on +Allowed Networks. + +Any use that is not a Non-Commercial Use is a “Commercial Use.” + +“Allowed Networks” (https://networks.any.coop) are the networks, +identified by their unique ids, names, or list of nodes, that are expressly +authorized by Any Association, to which the Software may send requests. +Any Association may add networks to this list, and, upon reasonable notice, +remove networks from it. + +To “use” means any use, modification, distribution or other exploitation of +the Software or any part of it. +