blob: ce60f882843bb4b559c2cbe9ebcc5019e938a4c6 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="98010d4e0c0d1ed95b2b08d9e2b51dcde3d18fe3"
CROS_WORKON_TREE="a818d64c51c6e1f5d20fcc39bf28116f48827408"
CROS_WORKON_PROJECT="chromiumos/third_party/huddly-updater"
inherit cros-workon libchrome udev user
DESCRIPTION="A utility to update Huddly camera firmware"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/huddly-updater"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="test"
DEPEND="
chromeos-base/libbrillo
test? ( dev-cpp/gtest )
virtual/libusb:1
virtual/libudev:0="
RDEPEND="${DEPEND}
app-arch/unzip"
src_configure() {
cros-workon_src_configure
}
src_test() {
if use amd64; then
emake tests
fi
}
src_install() {
dosbin huddly-updater
dosbin huddly-manifest
udev_dorules conf/99-huddly.rules
}
pkg_preinst() {
enewuser cfm-firmware-updaters
enewgroup cfm-firmware-updaters
}