summaryrefslogtreecommitdiff
blob: 4b7533a1ba7fc558d99618a73296554e0a95c7b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
EAPI=5
inherit eutils

DESCRIPTION="Zephyr Binary SDK"
HOMEPAGE="http://docs.zephyrproject.org/getting_started/installation_linux.html"
SRC_URI="https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/${PV}/zephyr-sdk-${PV}-setup.run"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 amd64-linux"
IUSE=""

RDEPEND=""

DEPEND="${RDEPEND}"

src_unpack() {
	cd "${DISTDIR}"
	mkdir -p "${S}"
	cp "${A}" "${S}"
}

src_configure() {
	chmod +x "${A}"
}

src_compile() {
	:;
}

src_install() {
	echo "${ED}/opt/zephyr-sdk" | bash "${A}"
	chmod -R -x+X ${ED}/opt/zephyr-sdk
}