opendreambox.conf: build connman's vpn plug-ins
[opendreambox.git] / meta-opendreambox / classes / opendreambox-precompiled-binary.bbclass
1 LICENSE = "CLOSED"
2 PRECOMPILED_URI ?= "http://dreamboxupdate.com/download/${DISTRO}/${DISTRO_VERSION}/${@precompiledPath(d)};name=${PACKAGE_ARCH}"
3
4 SRC_URI += "${PRECOMPILED_URI}"
5
6 S = "${WORKDIR}/${PN}_${PV}_${PACKAGE_ARCH}"
7
8 PACKAGES = "${PN}"
9
10 def precompiledPath(d):
11     pn = d.getVar('PN', True)
12     pv = d.getVar('PV', True)
13     package_arch = d.getVar('PACKAGE_ARCH', True)
14     md5sum = d.getVarFlag('SRC_URI', '%s.md5sum' % package_arch)
15     if md5sum is None:
16         raise bb.parse.SkipPackage("No checksum found for precompiled binary package %s" % pn)
17     return '%s/%s/%s/%s/%s_%s_%s.tar.xz' % (pn, pv, package_arch, md5sum, pn, pv, package_arch)
18
19 do_install() {
20     cp -r * ${D}
21 }
22
23 INHIBIT_PACKAGE_STRIP = "1"