app-office/anytype-bin: new package, add 0.35.0

Signed-off-by: xz-dev <xiangzhedev@gmail.com>
This commit is contained in:
xz-dev 2023-11-11 14:13:03 +08:00 committed by 梁永祥
parent 33dae12ff1
commit 5555f083e5
4 changed files with 122 additions and 0 deletions

View File

@ -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

View File

@ -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
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE
pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xiangzhedev@gmail.com</email>
<name>xz-dev</name>
</maintainer>
<upstream>
<bugs-to>https://community.anytype.io/c/bug-reports</bugs-to>
<changelog>
https://community.anytype.io/c/news-announcements/release-notes</changelog>
<remote-id type="github">anyproto/anytype-ts</remote-id>
</upstream>
</pkgmetadata>

55
licenses/ASAL-1.0 Normal file
View File

@ -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 Licensees
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.