blob: 17c826c44acef1153d4a03009036bfc3246b75ee (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
DESCRIPTION = "Desktop skin for Tizen:Common"
HOMEPAGE = "http://nohomepage.org"
SECTION = "Applications/Multimedia"
LICENSE = "GPL-2.0+"
SRC_URI = ""
S = "${WORKDIR}/git"
inherit autotools-brokensep
BBCLASSEXTEND = ""
PROVIDES = ""
#PROVIDES by desktop-skin
RDEPENDS = ""
DEPENDS = ""
do_prep() {
cd ${S}
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q
}
do_patch_append() {
bb.build.exec_func('do_prep', d)
}
do_configure() {
}
do_compile() {
cd ${S}
LANG=C
export LANG
unset DISPLAY
CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
LD_AS_NEEDED=1; export LD_AS_NEEDED ;
}
do_install() {
echo export RPM_BUILD_ROOT=${D}
cd ${S}
LANG=C
export LANG
unset DISPLAY
rm -rf ${D}
mkdir -p ${D}
mkdir -p ${D}${prefix}/bin
install -m 755 Script/launch_cam.sh ${D}${prefix}/bin
install -m 755 Script/launch_video.sh ${D}${prefix}/bin
install -m 755 Script/wifi ${D}${prefix}/bin
mkdir -p ${D}${prefix}/share/media/videos
install -m 644 Video/AmazingNature_480p.mp4 ${D}${prefix}/share/media/videos
mkdir -p ${D}${prefix}/share/media/photos
install -m 644 Photos/* ${D}${prefix}/share/media/photos
mkdir -p ${D}${prefix}/share/icons/tizen/32x32
install -m 644 icons/tizen/32x32/* ${D}${prefix}/share/icons/tizen/32x32
mkdir -p ${D}${prefix}/share/applications/tizen
install -m 644 applications/tizen/* ${D}${prefix}/share/applications/tizen
mkdir -p ${D}${prefix}/share/backgrounds/tizen
install -m 644 backgrounds/tizen/golfe-morbihan.jpg ${D}${prefix}/share/backgrounds/tizen/golfe-morbihan.jpg
install -m 644 backgrounds/tizen/tizen_common.png ${D}${prefix}/share/backgrounds/tizen/tizen_common.png
}
pkg_postinst_${PN}() {
#!/bin/sh -e
ln -s tizen_common.png ${prefix}/share/backgrounds/tizen/current
}
desktop-skin_files = ""
desktop-skin_files += "${prefix}/bin/*"
desktop-skin_files += "${prefix}/share/media/videos/AmazingNature_480p.mp4"
desktop-skin_files += "${prefix}/share/media/photos/*"
desktop-skin_files += "${prefix}/share/icons/tizen/32x32/*"
desktop-skin_files += "${prefix}/share/applications/tizen/*"
desktop-skin_files += "${prefix}/share/backgrounds/tizen/*"
FILES_${PN} = "${desktop-skin_files}"
PKG_desktop-skin= "desktop-skin"
require desktop-skin-extraconf.inc
|