From a1e8a7e428eb624be18944901d0f9254fe8feca8 Mon Sep 17 00:00:00 2001 From: "Brian, Jones" Date: Mon, 10 Sep 2012 16:51:37 -0700 Subject: [PATCH] adding Tizen packaging --- Makefile | 24 ++++++++++++++++++++++++ packaging/webdialer.changes | 1 + packaging/webdialer.spec | 34 ++++++++++++++++++++++++++++++++++ webdialer.desktop | 13 +++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 Makefile create mode 100644 packaging/webdialer.changes create mode 100644 packaging/webdialer.spec create mode 100644 webdialer.desktop diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e5fe819 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +PROJECT = webdialer +INSTALL_FILES = images js icon.png index.html + +VERSION := 0.0.1 +PACKAGE = $(PROJECT)-$(VERSION) +ARCHIVE = $(PACKAGE).tar.bz2 + +INSTALL_DIR = ${DESTDIR}/usr/share/$(PROJECT) +DESKTOP_DIR = ${DESTDIR}/usr/share/applications +ICON_DIR = ${DESTDIR}/usr/share/pixmaps + +all: + @echo "Nothing to build" + +install: + mkdir -p $(INSTALL_DIR)/ + cp -a $(INSTALL_FILES) $(INSTALL_DIR)/ + mkdir -p $(DESKTOP_DIR)/ + cp $(PROJECT).desktop $(DESKTOP_DIR)/ + mkdir -p $(ICON_DIR)/ + cp icon.png $(ICON_DIR)/$(PROJECT).png + +dist: + tar czf ../$(PACKAGE).tar.bz2 . diff --git a/packaging/webdialer.changes b/packaging/webdialer.changes new file mode 100644 index 0000000..1a4baf5 --- /dev/null +++ b/packaging/webdialer.changes @@ -0,0 +1 @@ + diff --git a/packaging/webdialer.spec b/packaging/webdialer.spec new file mode 100644 index 0000000..821dba3 --- /dev/null +++ b/packaging/webdialer.spec @@ -0,0 +1,34 @@ +Name: webdialer +Summary: A HTML5 hands free dialer app +Version: 0.0.1 +Release: 1 +Group: Applications/System +License: Apache 2.0 +URL: http://www.tizen.org2 +Source0: %{name}-%{version}.tar.bz2 +Requires: chromium +BuildRequires: desktop-file-utils + +%description +A HTML5 hands free dialer app + +%prep +%setup -q -n %{name}-%{version} + +%build + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + %{buildroot}%{_datadir}/applications/*.desktop + +%files +%defattr(-,root,root,-) +%{_datadir}/webdialer +%{_datadir}/applications/webdialer.desktop +%{_datadir}/pixmaps/webdialer.png diff --git a/webdialer.desktop b/webdialer.desktop new file mode 100644 index 0000000..73159d2 --- /dev/null +++ b/webdialer.desktop @@ -0,0 +1,13 @@ + +[Desktop Entry] +Version=1.0 +Name=WebDialer +Comment=HTML hands free dialer app +GenericName=WebDialer +Exec=chromium-browser --enable-plugins --enable-extensions --enable-user-scripts --enable-printing --enable-sync --use-gl=egl --ignore-gpu-blacklist --auto-ssl-client-auth %U --app-id=pcalifdijfgkblklmnofmioajppkaalb --load-extension=/usr/share/webdialer/ --no-first-run +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=WebDialer +StartupWMClass=Chromium +StartupNotify=true -- 2.7.4