inherit versionator

DESCRIPTION="Phidget USB hardware interface library"
MY_PV="$(get_major_version)$(get_version_component_range 2)"
SRC_URI="http://www.phidgets.com/modules/Downloads/docs/betas/${PN}${MY_PV}_linux_${PV}.tar.gz"
HOMEPAGE="http://www.phidgets.com"

SLOT="0"

LICENSE="as-is"
KEYWORDS="x86 ~alpha ~ppc ~sparc ~hppa ~amd64"

S=${WORKDIR}/${PN}${MY_PV}.linux.${PV}
	
src_compile() {

	emake || die "emake failed"
}

src_install() {

	mkdir -p ${D}/usr/lib
	mkdir -p ${D}/usr/include
	make install INSTALLPREFIX=${D} PREFIX=usr
}