46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit shell-completion
|
|
|
|
DESCRIPTION="Opencloud - platform for file management, sharing and collaboration"
|
|
HOMEPAGE="https://opencloud.eu https://github.com/opencloud-eu/opencloud"
|
|
SRC_URI="https://github.com/opencloud-eu/opencloud/releases/download/v${PV}/opencloud-${PV}-linux-amd64"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
src_unpack() {
|
|
mkdir -p ${S}
|
|
cp "${DISTDIR}/opencloud-${PV}-linux-amd64" "${S}/opencloud"
|
|
}
|
|
|
|
src_compile() { :; }
|
|
|
|
src_install() {
|
|
dobin opencloud
|
|
|
|
# create default config
|
|
${D}/usr/bin/opencloud init --config-path ${S} --insecure no
|
|
insinto /etc/opencloud
|
|
doins opencloud.yaml
|
|
|
|
keepdir /var/log/opencloud
|
|
newinitd ${FILESDIR}/initd opencloud
|
|
|
|
# install completions
|
|
${D}/usr/bin/opencloud completion bash > opencloud
|
|
dobashcomp opencloud
|
|
${D}/usr/bin/opencloud completion fish > opencloud.fish
|
|
dofishcomp opencloud.fish
|
|
${D}/usr/bin/opencloud completion zsh > _opencloud
|
|
dozshcomp _opencloud
|
|
}
|