golang-plaincast: switch from com.dreambox to de.dreambox
[opendreambox.git] / meta-opendreambox / recipes-devtools / golang / golang-plaincast_git.bb
1 SUMMARY = "Server that acts like a lightweight Chromecast that only includes YouTube"
2 HOMEPAGE = "https://${GO_SRCROOT}"
3 LICENSE = "BSD-2-Clause"
4 LIC_FILES_CHKSUM = "file://${GO_SRCROOT}/LICENSE;md5=8c72efa592970068179de01858522f24"
5 DEPENDS = "golang-gouuid golang-x-crypto golang-dbus"
6 RDEPENDS_${PN} = "enigma2-plugin-systemplugins-dbusinterfaceproxy enigma2-plugin-systemplugins-tubelib"
7 SRCREV = "5c2670ca5b9285f7f91db376b3e60026d4384b26"
8 RECIPE_PV := "${PV}"
9 PV = "${RECIPE_PV}+git${SRCPV}"
10
11 SRC_URI = " \
12     git://${GO_SRCROOT} \
13     file://0001-implement-dbus-based-dreambox-player.patch \
14     file://plugin_plaincast.xml \
15 "
16
17 SYSTEMD_SERVICE_${PN} = "plaincast.service"
18
19 inherit golang systemd
20
21 PACKAGES += "${PN}-meta"
22 FILES_${PN}-meta = "${datadir}/meta"
23
24 do_compile_prepend() {
25         rm -f ${S}/${GO_SRCROOT}/apps/youtube/mp/mpv.go
26 }
27
28 do_install_append() {
29         install -d ${D}${systemd_system_unitdir}
30         install -m644 ${S}/${GO_SRCROOT}/plaincast.service ${D}${systemd_system_unitdir}
31         install -d ${D}${datadir}/meta
32         install -m644 ${S}/plugin_plaincast.xml ${D}${datadir}/meta/plugin_plaincast.xml
33 }
34
35 GO_SRCROOT = "github.com/aykevl/plaincast"