blob: 4295d5a4b7b5baed4f45cd2d11b7f236d6e49a62 [file] [log] [blame]
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# No git repo for this so use empty-project.
CROS_WORKON_PROJECT="chromiumos/infra/build/empty-project"
CROS_WORKON_LOCALNAME="platform/empty-project"
inherit cros-workon
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
# All runtime dependencies should already be part of
# chromeos-base/chromeos-chrome, the ones that aren't will be handled in
# crbug.com/1199441.
RDEPEND="chromeos-base/chromeos-chrome"
# Omit DEPEND as nothing is built in this ebuild.
DEPEND=""
if [[ ${PV} != 9999 ]]; then
ORIG_GS_URI_PREFIX="gs://chrome-unsigned/desktop-5c0tCh"
LACROS_SQUASHFS="${PN}-squash-${PV}"
LACROS_METADATA="${PN}-metadata-${PV}"
SRC_URI="
${ORIG_GS_URI_PREFIX}/${LACROS_SQUASHFS}
${ORIG_GS_URI_PREFIX}/${LACROS_METADATA}
"
fi
src_install() {
insinto /opt/google/lacros
newins "${DISTDIR}/${LACROS_SQUASHFS}" lacros.squash
newins "${DISTDIR}/${LACROS_METADATA}" metadata.json
# Upstart configuration
insinto /etc/init
doins "${FILESDIR}/lacros-mounter.conf"
doins "${FILESDIR}/lacros-unmounter.conf"
# D-Bus configuration
insinto /etc/dbus-1/system.d
doins "${FILESDIR}/Lacros.conf"
}