-include lemon.inc
+require lemon.inc
inherit native
-do_stage () {
+do_stage() {
install -d ${STAGING_BINDIR}
install -m 0755 lemon ${STAGING_BINDIR}/
install -d ${STAGING_DATADIR}/lemon
PRIORITY = "optional"
SECTION = "devel"
-SRC_URI = "http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c \
- file://snprintf.patch;patch=1;pnum=0 \
- http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lempar.c \
- http://www.hwaci.com/sw/lemon/lemon.html \
- file://lemon.1"
-S = "${WORKDIR}"
+SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
+ file://lemon.1"
+S = "${WORKDIR}/sqlite-${PV}/tool"
-do_compile () {
+do_compile() {
${CC} ${CFLAGS} lemon.c -c -o lemon.o
${CCLD} ${LDFLAGS} lemon.o -o lemon
}
-include lemon.inc
+require lemon.inc
-do_install () {
+do_install() {
install -d ${D}${bindir}
install -m 0755 lemon ${D}${bindir}/
install -d ${D}${datadir}/lemon
install -m 0644 lempar.c ${D}${datadir}/lemon/
- install -d ${D}${docdir}/lemon
- install -m 0644 lemon.html ${D}${docdir}/lemon/
install -d ${D}${mandir}/man1
- install -m 0644 lemon.1 ${D}${mandir}/man1/
+ install -m 0644 ${WORKDIR}/lemon.1 ${D}${mandir}/man1/
}