summaryrefslogtreecommitdiff
path: root/recipes/slugimage/slugimage.bb
blob: 32c18c20250e9b567fa489423eadcec09fa64adf (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
# slugimage - normally built native, a perl script
SECTION = "console/utils"
LICENSE = "BSD"
DESCRIPTION = "Slugimage is a small app to disassemble and reassemble \
flash images for the Linksys NSLU2 device. It also has jffs2 support"
PR = "r13"

RDEPENDS_${PN} = "perl"

SLUGIMAGE_SVN_REV  ?= "104"
SLUGIMAGE_SVN_REPO ?= "http://svn.nslu2-linux.org/svnroot/slugimage/trunk"

addtask svnfetch before do_configure after do_patch

do_svnfetch() {
	svn co ${SLUGIMAGE_SVN_REPO} --revision ${SLUGIMAGE_SVN_REV} ${WORKDIR}
}

S = "${WORKDIR}"

do_install () {
	install -d ${D}${bindir}
	install -m 0755 slugimage ${D}${bindir}/
}