# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

SLOT="0"


DESCRIPTION="command-line tool and C library for controlling blink(1)"
HOMEPAGE="http://blink1.thingm.com/blink1-tool/"
SRC_URI="https://github.com/todbot/blink1/archive/v${PV}.tar.gz"

LICENSE="CC-BY-SA-3.0"
KEYWORDS="~amd64 ~x86"

RDEPEND=">=dev-libs/libusb-1.0.0"

src_prepare() {
	S="${WORKDIR}/${P}/commandline"
}

src_install() {
	emake PREFIX="/usr" DESTDIR="${D}" install
}