gentoo-overlay/app-backup/duplicati-bin/duplicati-bin-2.0.4.5_beta20181128.ebuild
Manuel Friedli 5004146f93
All checks were successful
continuous-integration/drone the build was successful
app-backup/duplicati-bin: Fix path to bash
Package-Manager: Portage-2.3.51, Repoman-2.3.11
2018-12-04 00:43:19 +01:00

45 lines
972 B
Bash

# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit eutils rpm
MY_PN="duplicati"
MY_PV="2.0.4.5"
MY_BUILDTYPE="beta"
MY_BUILDDATE="2018-11-28"
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."
HOMEPAGE="http://www.duplicati.com/"
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"
DEPEND="dev-dotnet/gtk-sharp"
S="${WORKDIR}"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}/001-${P}-bash-path.patch"
)
RDEPEND=""
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"
}