aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/freesmartphone/pycd_git.bb
blob: 92b0bb951dd80b26d5c93f7824bde128567e3717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DESCRIPTION = "Python Clone Factory"
AUTHOR = "Jan Luebbe <jluebbe@debian.org>"
HOMEPAGE = "http://www.freesmartphone.org"
SECTION = "console/network"
LICENSE = "GPLv2"
SRCREV = "${FSO_PYTHONHELPERS_SRCREV}"
PV = "0.1+gitr${SRCPV}"
PE = "1"
PR = "r0"

SRC_URI = "${FREESMARTPHONE_GIT}/python-helpers.git;protocol=git;branch=master"
S = "${WORKDIR}/git/${PN}"

RDEPENDS_${PN} = "\
  python-dbus \
  python-misc \
  python-pkgutil \
  python-resource \
"

do_compile() {
	${CC} pyc.c -o pyc
}

do_install() {
	install -d ${D}${bindir}
	install -m 755 pyc ${D}${bindir}/pyc
	install -d ${D}${sbindir}
	install -m 755 pycd.py ${D}${sbindir}/pycd
	install -d ${D}${sysconfdir}/dbus-1
	install -m 644 pycd.conf ${D}${sysconfdir}/dbus-1
}