Add ebuild for bupstash backup application

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2021-01-03 16:05:22 +01:00
parent 31cfe2d53a
commit dfdcb1cccb
3 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
EAPI="7"
inherit cargo
DESCRIPTION="Easy and efficient encrypted backups"
HOMEPAGE="https://bupstash.io/"
LICENSE="MIT"
if [[ "${PV}" == *9999* ]]
then
EGIT_REPO_URI="https://github.com/andrewchambers/bupstash.git"
inherit git-r3
KEYWORDS=""
else
MY_P="${PN}-v${PV}"
SRC_URI="https://github.com/andrewchambers/${PN}/releases/download/v${PV}/${MY_P}-src+deps.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"
fi
SLOT="0"
DEPEND="dev-libs/libsodium"
RDEPEND="${DEPEND}"
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}