summaryrefslogtreecommitdiff
path: root/recipes/gpioconfig/gpioconfig.bb~
blob: e5e6435b4aabc74adc8aa2e6651c5cb9c165e1fd (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
34
35
36
37
38
39
40
41
42
43
44
DESCRIPTION = "GPIOConfig tool for Colibri T20"
SECTION = "base"
LICENSE = "propriatry"
PR = "r3"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEPENDS = "gtk+"
RDEPENDS = "gtk+"

S = "${WORKDIR}/target-utils/GPIOConfig"

SVN_REV = "230"
SRC_URI = "svn://tegradev:tegra123!@mammut.toradex.int:8090/colibri_tegra_linux/trunk;module=target-utils/GPIOConfig;rev=${SVN_REV};proto=http"
#SRC_URI += "file://Makefile"
SRC_URI += "file://GPIOConfig.desktop"
SRC_URI += "file://GPIOConfig.png"

PACKAGES = "${PN}"

# just don't do any configuring
do_configure() {
}

do_install() {
        install -d ${D}/${bindir}
	install -d ${D}/${datadir}/applications
	install -d ${D}/${datadir}/pixmaps
        install ${S}/GPIOConfig ${D}/${bindir}
	install ${WORKDIR}/GPIOConfig.desktop ${D}/${datadir}/applications
        install ${WORKDIR}/GPIOConfig.png ${D}/${datadir}/pixmaps/GPIOConfig.png
}

pkg_postinst_${PN}() {
	mkdir -p ${base_prefix}/home/root/Desktop
	cp ${datadir}/applications/GPIOConfig.desktop ${base_prefix}/home/root/Desktop/
}

pkg_postremove_${PN}() {
        rm -f ${base_prefix}/home/Desktop/GPIOConfig.desktop
}