From 6cae8b8adf314bdba7bf8e1c4669657d588399aa Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Sun, 27 Sep 2020 22:36:10 -0400 Subject: k3s: import version locked upx dependency Signed-off-by: Bruce Ashfield --- recipes-extended/upx/upx_git.bb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes-extended/upx/upx_git.bb (limited to 'recipes-extended/upx/upx_git.bb') diff --git a/recipes-extended/upx/upx_git.bb b/recipes-extended/upx/upx_git.bb new file mode 100644 index 00000000..b77e6589 --- /dev/null +++ b/recipes-extended/upx/upx_git.bb @@ -0,0 +1,33 @@ +HOMEPAGE = "http://upx.sourceforge.net" +SUMMARY = "Ultimate executable compressor." + +SRCREV = "4e1ae22a1a07be5135c68b25ff05058ae8ae48e1" +SRC_URI = "gitsm://github.com/upx/upx;branch=devel" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=353753597aa110e0ded3508408c6374a" + +DEPENDS = "zlib libucl xz" + +S = "${WORKDIR}/git" + +PV = "3.96+${SRCPV}" + +EXTRA_OEMAKE += " \ + UPX_UCLDIR=${STAGING_DIR_TARGET} \ + UPX_LZMADIR=${STAGING_DIR_TARGET} \ +" + +# FIXME: The build fails if security flags are enabled +SECURITY_CFLAGS = "" + +do_compile() { + oe_runmake -C src all +} + +do_install_append() { + install -d ${D}${bindir} + install -m 755 ${B}/src/upx.out ${D}${bindir}/upx +} + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf