summaryrefslogtreecommitdiffstats
path: root/recipes/qpealarmclock/qpealarmclockapplet_1.0.9.bb
blob: 474c474882f8681244b9ed2b9399a8410156ddcc (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
DESCRIPTION = "Alarm Clock Applet"
SECTION = "opie/applets"
PRIORITY = "optional"
LICENSE = "GPL"
AUTHOR = "Anton Maslovsky"
HOMEPAGE = "http://my-zaurus.narod.ru/"
RDEPENDS_${PN} = "qpealarmclock"
RCONFLICTS_${PN} = "opie-clockapplet"
RREPLACES_${PN} = "opie-clockapplet"

PR = "r1"

APPNAME = "qpealarmclockapplet"
APPTYPE = "binary"

SRC_URI = "http://my-zaurus.narod.ru/downloads/clockapplet.tar.gz \
	   file://missing-files.tar.gz \
	   file://fix-compile.patch "

S = "${WORKDIR}/clockapplet"

inherit palmtop

pkg_postinst() {
#!/bin/sh
if [ -n "$D" ]; then exit 1; fi
if pidof -s qpe >/dev/null; then
  /usr/bin/qcop QPE/TaskBar "reloadApplets()"
fi
}

pkg_postrm() {
#!/bin/sh
/usr/bin/qcop QPE/TaskBar "reloadApplets()"
 if [ -n "$D" ]; then false; fi
}

do_install () {
# create dirs
  install -d ${D}${palmtopdir}/plugins/applets
# libs
 oe_libinstall -so libclockapplet ${D}${palmtopdir}/plugins/applets
}

SRC_URI[md5sum] = "7265673901eacb0b72a11cd6732cc698"
SRC_URI[sha256sum] = "80fd209d065887729fdeb81f5a91638626e7ed31dabab40c446bd12042df9057"
k rootfs } rootfs_ipk_write_manifest() { manifest=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest cp ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg/status $manifest sed '/Depends/d' -i $manifest sed '/Status/d' -i $manifest sed '/Architecture/d' -i $manifest sed '/Installed-Time/d' -i $manifest sed '/Auto-Installed/d' -i $manifest sed '/Recommends/d' -i $manifest sed '/Provides/d' -i $manifest sed '/Conflicts/d' -i $manifest } remove_packaging_data_files() { rm -rf ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg # We need the directory for the package manager lock mkdir ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg } list_installed_packages() { if [ "$1" = "arch" ] ; then opkg-cl ${OPKG_ARGS} status | opkg-query-helper.py -a elif [ "$1" = "file" ] ; then opkg-cl ${OPKG_ARGS} status | opkg-query-helper.py -f | while read pkg pkgfile do fullpath=`find ${DEPLOY_DIR_IPK} -name "$pkgfile" || true` if [ "$fullpath" = "" ] ; then echo "$pkg $pkgfile" else echo "$pkg $fullpath" fi done else opkg-cl ${OPKG_ARGS} list_installed | awk '{ print $1 }' fi } rootfs_list_installed_depends() { opkg-cl ${OPKG_ARGS} status | opkg-query-helper.py } rootfs_install_packages() { opkg-cl ${OPKG_ARGS} install `cat $1` } ipk_insert_feed_uris () { echo "Building from feeds activated!" for line in ${IPK_FEED_URIS} do # strip leading and trailing spaces/tabs, then split into name and uri line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`" feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`" feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`" echo "Added $feed_name feed with URL $feed_uri" # insert new feed-sources echo "src/gz $feed_name $feed_uri" >> ${IPKGCONF_TARGET} done # Allow to use package deploy directory contents as quick devel-testing # feed. This creates individual feed configs for each arch subdir of those # specified as compatible for the current machine. # NOTE: Development-helper feature, NOT a full-fledged feed. if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then for arch in ${PACKAGE_ARCHS} do echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf done fi } python () { if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): flags = d.getVarFlag('do_rootfs', 'recrdeptask') flags = flags.replace("do_package_write_ipk", "") flags = flags.replace("do_deploy", "") flags = flags.replace("do_populate_sysroot", "") d.setVarFlag('do_rootfs', 'recrdeptask', flags) d.setVar('OPKG_PREPROCESS_COMMANDS', "package_generate_archlist\nipk_insert_feed_uris") d.setVar('OPKG_POSTPROCESS_COMMANDS', '') }