SUMMARY = "Data files for usbmodeswitch"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

inherit allarch

DEPENDS += "tcl-native"

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
SRC_URI[sha256sum] = "0bb12d64aee5e467c31af61a53fb828ff7aa59c54a82ca85eeede4c5690bfa66"

do_install() {
    oe_runmake install DESTDIR=${D} RULESDIR=${D}/${nonarch_base_libdir}/udev/rules.d
}

RDEPENDS:${PN} = "usb-modeswitch (>= 2.4.0)"
FILES:${PN} += "${nonarch_base_libdir}/udev/rules.d/ \
                ${datadir}/usb_modeswitch"
