summaryrefslogtreecommitdiffstats
path: root/phone/paroli/Makefile
blob: f729ef570c60d8460cb056bc034cf6ac867ea27e (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=paroli
PKG_VERSION:=20090704
PKG_REV:=71fd25f3613c2376b980cfdd58cfee504b891e92
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://git.paroli-project.org/paroli.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)

PKG_BUILD_DEPENDS:=python

include $(INCLUDE_DIR)/package.mk
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)

define Package/paroli
  SECTION:=phone
  CATEGORY:=Phone
  TITLE:=integrated phone application
  DEPENDS:=+python +fso-frameworkd +python-evas +python-ecore +python-edje +python-e_dbus +python-etk +python-elementary +python-expat +dbus-launch-x +dbus-utils
  URL:=http://paroli-project.org
endef

define Package/paroli/description
  Paroli is a phone suite written in Python which uses the FSO (freesmartphone.org) DBus API
endef

define Build/Compile
	$(call Build/Compile/PyMod,,build)
endef

define Package/paroli/install
	$(INSTALL_DIR) \
		$(1)$(PYTHON_PKG_DIR) \
		$(1)/usr/bin \
		$(1)/usr/share/applications/paroli \
		$(1)/usr/share/paroli/services \
		$(1)/usr/share/icons \
        $(1)/usr/share/elementary/themes \
        $(1)/usr/share/dbus-1/system-services \
        $(1)/etc/dbus-1/system.d \
		$(1)/etc/paroli \
		$(1)/etc/xdg/autostart

    # CORE
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-core/tichy \
		$(1)$(PYTHON_PKG_DIR)/
	$(INSTALL_BIN) \
		$(PKG_BUILD_DIR)/paroli-scripts/paroli \
		$(1)/usr/bin/
	$(CP) \
		$(PKG_BUILD_DIR)/data/tichy \
		$(1)/usr/share/icons/parolid.png
	$(CP) \
		./files/desktop-files/parolid.desktop \
		$(1)/etc/xdg/autostart/
	$(CP) \
		$(PKG_BUILD_DIR)/data/paroli.edj \
		$(1)/usr/share/elementary/themes/
	$(CP) \
		./files/paroli.cfg \
		$(1)/etc/paroli/
	$(CP) \
		$(PKG_BUILD_DIR)/data/dbus/tichy.conf \
		$(1)/etc/dbus-1/system.d/
	$(CP) \
		$(PKG_BUILD_DIR)/data/dbus/org.tichy.launcher.service \
		$(1)//usr/share/dbus-1/system-services/

	## COMPONENTS
	## launcher (homescreen)
	$(INSTALL_DIR) $(1)/usr/share/paroli/applications/paroli-launcher2
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-applications/paroli-launcher2/*.{py,edj} \
		$(1)/usr/share/paroli/applications/paroli-launcher2
	# tele2 (dialer)
	$(INSTALL_DIR) $(1)/usr/share/paroli/applications/tele2
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-applications/tele2/*.{py,edj} \
		$(1)/usr/share/paroli/applications/tele2
	$(CP) \
		$(PKG_BUILD_DIR)/data/tichy \
		$(1)/usr/share/icons/tele.png
	$(CP) \
		./files/desktop-files/tele.desktop \
		$(1)/usr/share/applications/paroli/
	# msgs2 (messages)
	$(INSTALL_DIR) $(1)/usr/share/paroli/applications/msgs2
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-applications/msgs2/*.{py,edj} \
		$(1)/usr/share/paroli/applications/msgs2
	$(CP) \
		$(PKG_BUILD_DIR)/data/tichy \
		$(1)/usr/share/icons/msgs.png
	$(CP) \
		./files/desktop-files/msgs.desktop \
		$(1)/usr/share/applications/paroli/
	# people2 (contacts)
	$(INSTALL_DIR) $(1)/usr/share/paroli/applications/people2
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-applications/people2/*.{py,edj} \
		$(1)/usr/share/paroli/applications/people2/
	$(CP) \
		$(PKG_BUILD_DIR)/data/tichy \
		$(1)/usr/share/icons/people.png
	$(CP) \
		./files/desktop-files/people.desktop \
		$(1)/usr/share/applications/paroli/
	# i-o2 (incoming/outgoing)
	$(INSTALL_DIR) $(1)/usr/share/paroli/applications/i-o2
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-applications/i-o2/*.{py,edj} \
		$(1)/usr/share/paroli/applications/i-o2/
	$(CP) \
		$(PKG_BUILD_DIR)/data/tichy \
		$(1)/usr/share/icons/i-o.png
	$(CP) \
		./files/desktop-files/i-o.desktop \
		$(1)/usr/share/applications/paroli/

	# SERVICES
	$(CP) \
		$(PKG_BUILD_DIR)/paroli-services/{dialog,hardware,phone,gprs,prefs,system} \
		$(1)/usr/share/paroli/services/
endef

$(eval $(call RequireCommand,edje_cc, \
	Please install edje_cc. \
))

$(eval $(call BuildPackage,paroli))