1SUMMARY = "This is the set of GNU shar utilities."
2HOMEPAGE = "http://www.gnu.org/software/sharutils/"
3SECTION = "console/utils"
4LICENSE="GPL-3.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
6
7inherit gettext autotools update-alternatives
8
9SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
10           file://0001-Fix-build-with-clang.patch \
11           file://CVE-2018-1000097.patch \
12           file://0001-Fix-build-with-recent-gettext.patch \
13           file://0001-Fix-building-with-GCC-10.patch \
14           file://0002-Do-not-include-lib-md5.c-into-src-shar.c.patch \
15           file://0001-configure.ac-Check-and-define-intmax_t-type.patch \
16           "
17SRC_URI[md5sum] = "32a51b23e25ad5e6af4b89f228be1800"
18SRC_URI[sha256sum] = "ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637"
19
20do_install:append() {
21    if [ -e ${D}${libdir}/charset.alias ]
22    then
23        rm -rf ${D}${libdir}/charset.alias
24        rmdir --ignore-fail-on-non-empty ${D}${libdir}
25    fi
26}
27
28BBCLASSEXTEND = "native nativesdk"
29
30ALTERNATIVE:${PN} = "uudecode uuencode"
31ALTERNATIVE_LINK_NAME[uudecode] = "${bindir}/uudecode"
32ALTERNATIVE_LINK_NAME[uuencode] = "${bindir}/uuencode"
33