summaryrefslogtreecommitdiff
path: root/korganizer/korganizer-embedded_1.7.0.oe
blob: 31ee8d9b60bbc9e8c0c706ad0214fe94a64c7f20 (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
DESCRIPTION= "Korganizer/Pi is a powerful calender and ToDo Tool for Qt/Embedded based Palmtop Environments"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Sebastian Goergen <zeppo@gmx.net>"
LICENSE = "GPL"
RDEPENDS = "lipqpe1"
DEPENDS ="virtual/libc virtual/libqpe"
PR = "b"

SRC_URI = "http://www.pi-sync.net/daunlood/latest/korganizerPi.170${PR}.tar.gz"

S = "${WORKDIR}/korganizerPi.170${PR}"

inherit palmtop

EXTRA_QMAKEVARS_POST = "QMAKE_UIC=${STAGING_BINDIR}/uic QMAKE_MOC=${STAGING_BINDIR}/moc QMAKE_RPATH=-Wl,-rpath-link,"
QMAKE_PROFILES= "all.pro"

SUBDIRS="qtcompat microkde libical/src/libical libical/src/libicalss libkcal libkdepim libkabcwrap kalarmd korganizer " 

do_configure_prepend() {
        echo -e "TEMPLATE=subdirs\nSUBDIRS=${SUBDIRS}\n" >all.pro
        for d in ${SUBDIRS}
        do
                mv -f ${d}/`basename ${d}`E.pro ${d}/`basename ${d}`.pro
        done
}

do_install() {
    install -d ${D}/${palmtopdir}/bin \
	       ${D}/${palmtopdir}/lib \
	       ${D}/${palmtopdir}/apps/Pim \
       	       ${D}/${palmtopdir}/pics/korganizer/icons16 \
       	       ${D}/${palmtopdir}/pics/korganizer/iconsmini \
       	       ${D}/${palmtopdir}/plugins/applets
    install -m 0644 korganizer/korganizer.desktop ${D}/opt/QtPalmtop/apps/Pim/korganizer.desktop
    cd ${S}/pics
    cp ko*.png ${D}/opt/QtPalmtop/pics
    cp *.png *.wav ${D}/opt/QtPalmtop/pics/korganizer
    cp ./icons16/*.png ${D}/opt/QtPalmtop/pics/korganizer/icons16
    cp ./iconsmini/*.png ${D}/opt/QtPalmtop/pics/korganizer/iconsmini

    for f in libmicrokde.so.1.0.0 libmicrokdepim.so.1.0.0 libmicrokabc.so.1.0.0 libmicrokcal.so.1.0.0 libmicroqtcompat.so.1.0.0 
    do
        oe_soinstall ${STAGING_LIBDIR}/${f} ${D}/opt/QtPalmtop/lib
        rm -f ${STAGING_LIBDIR}/${f}
    done

    install -m 0755 ${STAGING_DIR}/target/bin/kopi ${D}/opt/QtPalmtop/bin/kopi
    rm -f ${STAGING_DIR}/target/bin/kopi
    for f in libkopialarmapplet.so.1.0.0 libsimplealarmdaemon.so.1.0.0
    do
	oe_soinstall ${STAGING_DIR}/target/plugins/applets/${f} ${D}/opt/QtPalmtop/plugins/applets
    rm -f $ {STAGING_DIR}/target/plugins/applets/${f}
    done

}