SRC_URI="ftp://ftp.trolltech.com/pub/freebies/tmake/tmake-${PV}.tar.gz"
DESCRIPTION="tmake is an easy-to-use tool for creating and maintaining makefiles across many platforms and compilers."
LICENSE="Unknown"
DEPENDS=""
SECTION="base"
PRIORITY="optional"
MAINTAINER="Chris Larson <kergoth@handhelds.org>"

S="${WORKDIR}/${P}"

do_stage() {
	install -m 0755 bin/tmake bin/progen ${STAGING_BINDIR}/

	install -d ${STAGING_DIR}/share/tmake
	cp -R lib/* ${STAGING_DIR}/share/tmake/
}

do_install() {
	install -d ${D}${bindir}
	install -m 0755 bin/tmake bin/progen ${D}${bindir}/

	install -d ${D}${datadir}/tmake
	cp -R lib/* ${D}${datadir}/tmake/
}

PACKAGES="tmake"
FILES=""
FILES_tmake="${bindir} ${datadir}/tmake"