blob: 7e9c18ed2834409984fdbfb1ed1f2c7619a01b1c [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001DESCRIPTION = "The MirBSD Korn Shell - an enhanced version of the public domain ksh"
2HOMEPAGE = "http://www.mirbsd.org/mksh.htm"
3SECTION = "base/shell"
4
5LICENSE = "${@bb.utils.contains("TCLIBC", "glibc", "MirOS & ISC", "MirOS", d)}"
Brad Bishop996bc452019-12-02 13:05:15 -05006LIC_FILES_CHKSUM = "file://main.c;beginline=6;endline=26;md5=0651e575e39d1a3e884562e25d491fc7 \
Brad Bishop19323692019-04-05 15:28:33 -04007 file://strlcpy.c;beginline=1;endline=17;md5=d953f28f0c43ee29e238ec9bc15df2a0 \
8 "
9
Brad Bishop996bc452019-12-02 13:05:15 -050010SRC_URI = "http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R57.tgz"
Brad Bishop19323692019-04-05 15:28:33 -040011
Brad Bishop996bc452019-12-02 13:05:15 -050012SRC_URI[md5sum] = "4d2686535252ea6a57bdec531498239a"
13SRC_URI[sha256sum] = "3d101154182d52ae54ef26e1360c95bc89c929d28859d378cc1c84f3439dbe75"
Brad Bishop19323692019-04-05 15:28:33 -040014
15inherit update-alternatives
16
17S = "${WORKDIR}/${BPN}"
18
19ALTERNATIVE_${PN} = "sh"
20ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
21ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
22ALTERNATIVE_PRIORITY = "100"
23
24do_compile() {
25 sh ${S}/Build.sh -r
26}
27
28do_install() {
29 install -d ${D}${base_bindir}
30 install -m 0755 ${S}/mksh ${D}${base_bindir}/mksh
31
32 install -d ${D}${sysconfdir}/skel
33 install -m 0644 ${S}/dot.mkshrc ${D}${sysconfdir}/skel/.mkshrc
34}
35
36RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh', '', d)}"