summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/uhubctl/uhubctl_2.6.0.bb
blob: f4c2eaa63f196cf804185b2f75e7bc4ef019eba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SUMMARY = "USB hub per-port power control"
HOMEPAGE = "https://github.com/mvp/uhubctl"
BUGTRACKER = "https://github.com/mvp/uhubctl/issues"
DEPENDS = "libusb1"

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

SRCREV = "352f5878e999c0a9d5a453b34110479b2056d7e7"
SRC_URI = "git://github.com/mvp/${BPN};branch=master;protocol=https"

inherit pkgconfig

# uhubctl gets its program version from "git describe". As we use the source
# archive do reduce download size replace the call with our hardcoded version.
do_configure:append() {
    sed -i "s/^\(GIT_VERSION :=\).*$/\1 ${PV}/g" ${S}/Makefile
}

do_install () {
    oe_runmake install DESTDIR=${D}
}