Skip to content

Commit 0ce38fe

Browse files
committed
fossa-cli: rewrite for scarthgap
1 parent be17fa7 commit 0ce38fe

2 files changed

Lines changed: 37 additions & 40 deletions

File tree

recipes-extended/fossa/fossa-cli.bb

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# fossa-cli
2+
3+
SUMMARY = "Flexible, performant dependency analysis"
4+
HOMEPAGE = "https://fossa.com"
5+
6+
LICENSE = "CPAL-1.0"
7+
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/CPAL-1.0;md5=4b571d5d786c50fbe70381b8c504be7d"
8+
9+
COMPATIBLE_HOST = "(x86_64|aarch64)"
10+
11+
FOSSA_ARCH = ""
12+
FOSSA_ARCH:x86-64 = "amd64"
13+
FOSSA_ARCH:aarch64 = "arm64"
14+
15+
FOSSA_SHA = ""
16+
FOSSA_SHA:x86-64 = "0e4c91d803159615da0315eac3ee49ba574c0b4165c9f41d8672197a701680b8"
17+
FOSSA_SHA:aarch64 = "15ba607a47ba333d5235c510ab80e21b1a1c7cf4610b7deef1e3984c24d4fabc"
18+
19+
FOSSA_DOWNLOAD_URI = "https://github.com/fossas/fossa-cli/releases/download"
20+
21+
SRC_URI = "${FOSSA_DOWNLOAD_URI}/v${PV}/fossa_${PV}_linux_${FOSSA_ARCH}.tar.gz;protocol=https;subdir=${BP}"
22+
SRC_URI[sha256sum] = "${FOSSA_SHA}"
23+
24+
BBCLASSEXTEND += "native"
25+
26+
CLEANBROKEN = "1"
27+
28+
do_compile() {
29+
cp -a "${S}/fossa" "${WORKDIR}/fossa"
30+
}
31+
32+
do_install() {
33+
install -d ${D}${bindir}/
34+
install -m 0755 ${WORKDIR}/fossa ${D}${bindir}/fossa
35+
}
36+
37+
INSANE_SKIP:${PN} += "already-stripped"

0 commit comments

Comments
 (0)