gentoo-overlay/app-backup/duplicati-bin/duplicati-bin-2.0.7.1_beta20230525.ebuild

45 lines
1,003 B
Bash
Raw Normal View History

2021-08-08 23:00:00 +02:00
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
2021-08-08 23:00:00 +02:00
inherit rpm
2021-08-08 23:00:00 +02:00
MY_PN="duplicati"
2023-06-13 20:09:29 +02:00
MY_PV="2.0.7.1"
2021-08-08 23:00:00 +02:00
MY_BUILDTYPE="beta"
2023-06-13 20:09:29 +02:00
MY_BUILDDATE="2023-05-25"
2021-08-08 23:00:00 +02:00
MY_BASE_PV="${MY_PV}-${MY_PV}_${MY_BUILDTYPE}"
MY_PV_1="v${MY_BASE_PV}_${MY_BUILDDATE}"
MY_PV_2="${MY_PN}-${MY_BASE_PV}_${MY_BUILDDATE//-/}"
DESCRIPTION="A backup client that securely stores encrypted, incremental, compressed backups."
2022-09-20 14:44:19 +02:00
HOMEPAGE="https://www.duplicati.com/"
2021-08-08 23:00:00 +02:00
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${MY_PV_1}/${MY_PV_2}.noarch.rpm -> ${P}.rpm"
RDEPEND="!app-backup/duplicati
>=dev-lang/mono-5.10"
DEPEND="dev-dotnet/gtk-sharp:3"
S="${WORKDIR}"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}/001-${PN}-2.0.5.1_beta20200118-bash-path.patch"
)
src_prepare() {
eapply ${PATCHES}
eapply_user
mv "${S}/usr/share/doc/duplicati" "${S}/usr/share/doc/${P}"
}
src_install() {
cp -R "${S}/usr/" "${D}/" || die "install failed"
}