diff options
| -rw-r--r-- | meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb b/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb index be706e1aca..b89fc42dea 100644 --- a/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb +++ b/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb | |||
| @@ -15,3 +15,21 @@ do_install() { | |||
| 15 | install -d ${D}${bindir} | 15 | install -d ${D}${bindir} |
| 16 | install -m 0755 ${S}/bin/* ${D}${bindir} | 16 | install -m 0755 ${S}/bin/* ${D}${bindir} |
| 17 | } | 17 | } |
| 18 | |||
| 19 | # all3: to build bin/7za, bin/7z (with its plugins), bin/7zr and bin/7zCon.sfx | ||
| 20 | EXTRA_OEMAKE_class-native = "all3" | ||
| 21 | |||
| 22 | do_install_class-native() { | ||
| 23 | install -d ${D}${bindir} | ||
| 24 | install -d ${D}${bindir}/Codecs | ||
| 25 | install -m 0755 ${S}/bin/7* ${D}${bindir} | ||
| 26 | install -m 0755 ${S}/bin/Codecs/* ${D}${bindir}/Codecs | ||
| 27 | |||
| 28 | # Create a shell script wrapper to execute next to 7z.so | ||
| 29 | mv ${D}${bindir}/7z ${D}${bindir}/7z.bin | ||
| 30 | echo "#! /bin/sh" > ${D}${bindir}/7z | ||
| 31 | echo "exec ${D}${bindir}/7z.bin \"\$@\"" >> ${D}${bindir}/7z | ||
| 32 | chmod 0755 ${D}${bindir}/7z | ||
| 33 | } | ||
| 34 | |||
| 35 | BBCLASSEXTEND += "native" | ||
