aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/usleep/usleep_1.0.bb
blob: 2ef4b7c024c813c4ff971edd78952c183eb42e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "A user tool to support sleeping some number of microseconds"
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

PR = "r0"

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
}