diff options
Diffstat (limited to 'app-office/moneydance/moneydance-2022.4058.ebuild')
-rw-r--r-- | app-office/moneydance/moneydance-2022.4058.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-office/moneydance/moneydance-2022.4058.ebuild b/app-office/moneydance/moneydance-2022.4058.ebuild new file mode 100644 index 000000000000..3ee83cda0b98 --- /dev/null +++ b/app-office/moneydance/moneydance-2022.4058.ebuild @@ -0,0 +1,54 @@ +# Copyright 2018-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop java-pkg-2 xdg-utils + +MY_PN="Moneydance" +MY_PV="$(ver_cut 1)_$(ver_cut 2)" + +DESCRIPTION="A cross-platform personal finance application" +HOMEPAGE="https://moneydance.com/" +SRC_URI="https://infinitekind.com/stabledl/${MY_PV}/${MY_PN}_linux_amd64.tar.gz -> ${P}-amd64.tar.gz" + +LICENSE="Apache-1.0 Apache-2.0 BSD CPAL-1.0 CPL-1.0 CSL-2.0 LGPL-2 MIT TIK" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="|| ( + dev-java/openjdk-bin:11 + dev-java/openjdk:11 + ) +" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_PN}" + +RESTRICT="bindist mirror" + +src_compile() { + :; +} + +src_install() { + java-pkg_dojar lib/*.jar + + newbin "${FILESDIR}/moneydance-bin" moneydance + + local iconsizes="32 128 512" + for iconsize in ${iconsizes}; do + newicon -s ${iconsize} resources/moneydance_icon${iconsize}.png moneydance.png + done + + make_desktop_entry "moneydance" "Moneydance" moneydance Office +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |