| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="7" |
| |
| CROS_WORKON_COMMIT="3132d8e32d87ba8a913dd8f8f24af5ab25b55684" |
| CROS_WORKON_TREE=("eec5ce9cfadd268344b02efdbec7465fbc391a9e" "7855dda5c081cddfb67dbbe13c175507d861d1df" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_DESTDIR="${S}/platform2" |
| CROS_WORKON_SUBTREE="common-mk typecd .gn" |
| |
| PLATFORM_SUBDIR="typecd" |
| |
| inherit cros-workon platform user |
| |
| DESCRIPTION="Chrome OS USB Type C daemon" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/typecd/" |
| |
| LICENSE="BSD-Google" |
| SLOT=0 |
| KEYWORDS="*" |
| |
| src_install() { |
| dobin "${OUT}"/typecd |
| } |
| |
| pkg_preinst() { |
| enewuser typecd |
| enewgroup typecd |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/typecd_testrunner" |
| } |