1SUMMARY = "This is the set of GNU shar utilities."
2HOMEPAGE = "http://www.gnu.org/software/sharutils/"
3SECTION = "console/utils"
4LICENSE="GPLv3+"
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           "
16SRC_URI[md5sum] = "32a51b23e25ad5e6af4b89f228be1800"
17SRC_URI[sha256sum] = "ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637"
18
19do_install_append() {
20    if [ -e ${D}${libdir}/charset.alias ]
21    then
22        rm -rf ${D}${libdir}/charset.alias
23        rmdir --ignore-fail-on-non-empty ${D}${libdir}
24    fi
25}
26
27BBCLASSEXTEND = "native nativesdk"
28
29ALTERNATIVE_${PN} = "uudecode uuencode"
30ALTERNATIVE_LINK_NAME[uudecode] = "${bindir}/uudecode"
31ALTERNATIVE_LINK_NAME[uuencode] = "${bindir}/uuencode"
32