diff options
-rw-r--r-- | meta-oe/recipes-extended/zstd/zstd_1.4.0.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/zstd/zstd_1.4.0.bb b/meta-oe/recipes-extended/zstd/zstd_1.4.0.bb new file mode 100644 index 0000000000..06357da956 --- /dev/null +++ b/meta-oe/recipes-extended/zstd/zstd_1.4.0.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "Zstandard - Fast real-time compression algorithm" | ||
2 | DESCRIPTION = "Zstandard is a fast lossless compression algorithm, targeting \ | ||
3 | real-time compression scenarios at zlib-level and better compression ratios. \ | ||
4 | It's backed by a very fast entropy stage, provided by Huff0 and FSE library." | ||
5 | HOMEPAGE = "http://www.zstd.net/" | ||
6 | SECTION = "console/utils" | ||
7 | |||
8 | LICENSE = "BSD-3-Clause & GPLv2" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c7f0b161edbe52f5f345a3d1311d0b32 \ | ||
10 | file://COPYING;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0" | ||
11 | |||
12 | SRC_URI = "git://github.com/facebook/zstd.git;nobranch=1" | ||
13 | |||
14 | SRCREV = "83b51e9f886be7c2a4d477b6e7bc6db831791d8d" | ||
15 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | do_compile () { | ||
20 | oe_runmake | ||
21 | oe_runmake -C programs zstd-compress zstd-decompress zstd-frugal | ||
22 | } | ||
23 | |||
24 | do_install () { | ||
25 | oe_runmake install 'DESTDIR=${D}' | ||
26 | install -d -m 0755 ${D}${bindir} | ||
27 | install -m 0755 ${S}/programs/zstd-compress ${D}${bindir} | ||
28 | install -m 0755 ${S}/programs/zstd-decompress ${D}${bindir} | ||
29 | install -m 0755 ${S}/programs/zstd-frugal ${D}${bindir} | ||
30 | } | ||
31 | |||
32 | PACKAGE_BEFORE_PN += " \ | ||
33 | ${PN}-compress \ | ||
34 | ${PN}-decompress \ | ||
35 | ${PN}-frugal \ | ||
36 | " | ||
37 | |||
38 | FILES_${PN}-compress = " \ | ||
39 | ${bindir}/zstd-compress \ | ||
40 | " | ||
41 | |||
42 | FILES_${PN}-decompress = " \ | ||
43 | ${bindir}/zstd-decompress \ | ||
44 | " | ||
45 | |||
46 | FILES_${PN}-frugal = " \ | ||
47 | ${bindir}/zstd-frugal \ | ||
48 | " | ||
49 | |||
50 | BBCLASSEXTEND = "native nativesdk" | ||