1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION
="AppFlowy is an open-source alternative to Notion"
11 HOMEPAGE
="https://www.appflowy.io/"
13 https://github.com/AppFlowy-IO/AppFlowy/releases/download/${PV}/${MY_PN}_x86_64-unknown-linux-gnu_ubuntu-20.04.tar.gz -> ${P}.tar.gz
21 app-accessibility/at-spi2-core:2
34 RESTRICT
="mirror test"
37 /opt/${PN}/lib/libapp.so
38 /opt/${PN}/lib/libflutter_linux_gtk.so
42 S
="${WORKDIR}/${MY_PN}_x86_64-unknown-linux-gnu_ubuntu-20.04/${MY_PN}"
46 doins
-r data
/ lib
/ AppFlowy
48 fperms
+x
/opt
/${PN}/AppFlowy
50 sed -i "s#\[CHANGE_THIS\]/AppFlowy#/opt/${PN}#g" appflowy.desktop.temp || die
51 sed -i "s#/opt/${PN}/flowy_logo.svg#flowy_logo#g" appflowy.desktop.temp || die
52 mv appflowy.desktop
{.temp
,} || die
53 domenu appflowy.desktop
54 doicon
-s scalable flowy_logo.svg