mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 12:12:16 +02:00
This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
34 lines
813 B
BlitzBasic
34 lines
813 B
BlitzBasic
SUMMARY = "A user tool to support sleeping some number of microseconds"
|
|
SECTION = "base"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
|
|
S = "${WORKDIR}"
|
|
DEPENDS = "popt"
|
|
|
|
SRC_URI = "file://usleep.c \
|
|
file://usleep.1 \
|
|
file://GPLv2.patch \
|
|
"
|
|
|
|
do_compile() {
|
|
${CC} ${CFLAGS} ${LDFLAGS} usleep.c -o usleep -lpopt
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${base_bindir}
|
|
install -d ${D}${mandir}/man1
|
|
|
|
install -m 0755 ${WORKDIR}/usleep ${D}${base_bindir}
|
|
install -m 0644 ${WORKDIR}/usleep.1 ${D}${mandir}/man1
|
|
}
|
|
|
|
inherit update-alternatives
|
|
|
|
ALTERNATIVE:${PN} = "usleep"
|
|
ALTERNATIVE_PRIORITY = "80"
|
|
ALTERNATIVE_LINK_NAME[usleep] = "${base_bindir}/usleep"
|
|
|
|
ALTERNATIVE:${PN}-doc = "usleep.1"
|
|
ALTERNATIVE_LINK_NAME[usleep.1] = "${mandir}/man1/usleep.1"
|