|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
1 |
#!/usr/bin/make -f
|
2 |
||
|
15
by Fabien Tassin
* New upstream snapshot: 0.8+svn20071105r7789 |
3 |
DEB_MOZ_APPLICATION=prism |
|
46
by Fabien Tassin
* Move everything out of /usr/lib to /usr/share as it's an all arch package |
4 |
DEB_MOZ_DIR=/usr/share/$(DEB_MOZ_APPLICATION) |
|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
5 |
DEB_MOZ_DATA=/usr/share/$(DEB_MOZ_APPLICATION) |
|
19
by Fabien Tassin
* Change the desktop icon to use the prism from the branding dir |
6 |
DEB_MOZ_BIG_ICON=app/chrome/locale/en-US/brand/icon128.png |
|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
7 |
|
|
35
by Fabien Tassin
* Add a 'get-orig' target to fetch the current tarball |
8 |
DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)$$/\1/ p') |
9 |
DEBIAN_UPSTREAM_VERSION := $(shell echo $(DEBIAN_VERSION) | sed 's/^\(.*\)-[^-]*$$/\1/') |
|
10 |
DEBIAN_SVN_REVISION := $(shell echo $(DEBIAN_UPSTREAM_VERSION) | sed -e 's/.*svn.*r//') |
|
|
50
by Fabien Tassin
* Make get-orig-source and new-orig-source look less shellish |
11 |
DEBIAN_TMP := $(shell echo tmp-$$$$) |
|
35
by Fabien Tassin
* Add a 'get-orig' target to fetch the current tarball |
12 |
|
13 |
SVN_URL=http://svn.mozilla.org/projects/webrunner/ |
|
14 |
TAR_EXCLUDE= \ |
|
15 |
--exclude=.svn \ |
|
16 |
$(NULL) |
|
17 |
||
|
34
by Fabien Tassin
* Drop cdbs from build-dep, it is nice for quilt but we don't really use it. |
18 |
include /usr/share/quilt/quilt.make |
|
10
by Fabien Tassin
* Add support for quilt |
19 |
|
|
3
by Fabien Tassin
* Improve WebApps icons and add Gmail |
20 |
WEBAPPS = \ |
|
65
by Fabien Tassin
* Quote elements of WEBAPPS to avoid bogus ';' introduces in the |
21 |
"facebook@facebook@Facebook@http://www.facebook.com/@GTK;Network;" \
|
22 |
"ganalytics@google-analytics@Google~Analytics@http://analytics.google.com/@GTK;Network;" \
|
|
23 |
"gcalendar@google-calendar@Google~Calendar@https://www.google.com/calendar@GTK;Office;Calendar;" \
|
|
24 |
"gdocs@google-docs@Google~Docs@https://docs.google.com/@GTK;Office;Spreadsheet;WordProcessor;" \
|
|
25 |
"gmail@google-mail@Google~Mail~\(GMail\)@https://mail.google.com/@GTK;Network;Email;" \
|
|
26 |
"greader@google-reader@Google~Reader@https://www.google.com/reader@GTK;Network;News;" \
|
|
27 |
"groups@google-groups@Google~Groups@http://groups.google.com/groups/favorites@GTK;Network;News;" \
|
|
28 |
"gtalk@google-talk@Google~Talk@http://talkgadget.google.com/talkgadget/popout@GTK;Network;InstantMessaging;" \
|
|
29 |
"twitter@twitter@twitter@http://www.twitter.com/@GTK;Network;" \
|
|
|
3
by Fabien Tassin
* Improve WebApps icons and add Gmail |
30 |
$(NULL) |
31 |
||
|
53
by Fabien Tassin
* Tweak rules a bit to make them cleaner |
32 |
build: patch build-stamp |
|
34
by Fabien Tassin
* Drop cdbs from build-dep, it is nice for quilt but we don't really use it. |
33 |
|
|
53
by Fabien Tassin
* Tweak rules a bit to make them cleaner |
34 |
build-stamp: |
|
34
by Fabien Tassin
* Drop cdbs from build-dep, it is nice for quilt but we don't really use it. |
35 |
dh_testdir
|
36 |
if [ ! -L patches ] ; then ln -s debian/patches ; fi |
|
|
53
by Fabien Tassin
* Tweak rules a bit to make them cleaner |
37 |
touch $@ |
38 |
||
39 |
install: build |
|
40 |
dh_testdir
|
|
41 |
dh_testroot
|
|
42 |
dh_installdirs
|
|
43 |
||
|
45
by Fabien Tassin
* Use install instead of mkdir/cp |
44 |
install -d -m 755 debian/tmp$(DEB_MOZ_DIR) |
|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
45 |
( cd app ; tar cf - . ) | ( cd debian/tmp$(DEB_MOZ_DIR) ; tar xvf - ) |
|
71
by Fabien Tassin
* Use PNG instead of deprecated XPM for windows icons (LP: #205782) |
46 |
uudecode -o debian/prism.png debian/prism.png.uu |
47 |
install -m 644 debian/prism.png debian/tmp$(DEB_MOZ_DIR)/chrome/icons/default/default.png |
|
48 |
install -m 644 debian/prism.png debian/tmp$(DEB_MOZ_DIR)/chrome/icons/default/app.png |
|
49 |
install -m 644 debian/tmp$(DEB_MOZ_DIR)/chrome/icons/default/webrunner.png debian/tmp$(DEB_MOZ_DIR)/chrome/icons/default/app16.png |
|
|
46
by Fabien Tassin
* Move everything out of /usr/lib to /usr/share as it's an all arch package |
50 |
install -m 755 debian/prism.sh debian/tmp/usr/share/$(DEB_MOZ_APPLICATION)/$(DEB_MOZ_APPLICATION) |
|
33
by Fabien Tassin
* Remove MimeType from WebApp desktop files, except from the main prism |
51 |
# WebApps |
|
45
by Fabien Tassin
* Use install instead of mkdir/cp |
52 |
install -d -m 755 debian/tmp$(DEB_MOZ_DATA)/apps |
|
30
by Fabien Tassin
* Install webapps in /usr/share/prism/apps to avoid mixup |
53 |
( cd install/profiles; tar cf - . ) | ( cd debian/tmp$(DEB_MOZ_DATA)/apps ; tar xvf - ) |
|
33
by Fabien Tassin
* Remove MimeType from WebApp desktop files, except from the main prism |
54 |
# Desktop files |
|
45
by Fabien Tassin
* Use install instead of mkdir/cp |
55 |
install -d -m 755 debian/tmp/usr/share/applications |
56 |
install -m 644 debian/*.desktop debian/tmp/usr/share/applications |
|
|
33
by Fabien Tassin
* Remove MimeType from WebApp desktop files, except from the main prism |
57 |
# Icons
|
58 |
for size in 32 48 ; do \
|
|
|
45
by Fabien Tassin
* Use install instead of mkdir/cp |
59 |
install -d -m 755 debian/tmp/usr/share/icons/gnome/$${size}x$${size}/mimetypes ; \
|
60 |
install -m 644 app/chrome/icons/default/webrunner$$size.png debian/tmp/usr/share/icons/gnome/$${size}x$${size}/mimetypes/gnome-mime-application-vnd.mozilla.webapp.png ; \
|
|
|
33
by Fabien Tassin
* Remove MimeType from WebApp desktop files, except from the main prism |
61 |
done
|
|
45
by Fabien Tassin
* Use install instead of mkdir/cp |
62 |
install -d -m 755 debian/tmp/usr/share/pixmaps
|
|
3
by Fabien Tassin
* Improve WebApps icons and add Gmail |
63 |
for app in $(WEBAPPS) ; do \
|
64 |
APP=`echo $$app | cut -d@ -f1` ; \
|
|
65 |
NAME=`echo $$app | cut -d@ -f2` ; \
|
|
|
74
by Fabien Tassin
* Really add icons to the installed webapp, not to the source ones |
66 |
( cd debian ; unzip tmp$(DEB_MOZ_DATA)/apps/$$APP.webapp $$APP.xpm ); \
|
|
4
by Fabien Tassin
* Package all WebApps supported upstream |
67 |
if [ -e debian/$$APP.xpm ] ; then \
|
|
71
by Fabien Tassin
* Use PNG instead of deprecated XPM for windows icons (LP: #205782) |
68 |
convert debian/$$APP.xpm debian/$$APP.png ; \
|
|
74
by Fabien Tassin
* Really add icons to the installed webapp, not to the source ones |
69 |
( cd debian ; zip tmp$(DEB_MOZ_DATA)/apps/$$APP.webapp $$APP.png ) ; \
|
|
71
by Fabien Tassin
* Use PNG instead of deprecated XPM for windows icons (LP: #205782) |
70 |
mv debian/$$APP.png debian/prism-$$NAME.png ; \
|
|
4
by Fabien Tassin
* Package all WebApps supported upstream |
71 |
else \
|
|
71
by Fabien Tassin
* Use PNG instead of deprecated XPM for windows icons (LP: #205782) |
72 |
cp debian/prism.png debian/prism-$$NAME.png ; \
|
|
4
by Fabien Tassin
* Package all WebApps supported upstream |
73 |
fi ; \
|
|
3
by Fabien Tassin
* Improve WebApps icons and add Gmail |
74 |
done
|
|
71
by Fabien Tassin
* Use PNG instead of deprecated XPM for windows icons (LP: #205782) |
75 |
install -m 644 debian/*.png debian/tmp/usr/share/pixmaps
|
|
45
by Fabien Tassin
* Use install instead of mkdir/cp |
76 |
install -m 644 $(DEB_MOZ_BIG_ICON) debian/tmp/usr/share/pixmaps/prism.png
|
|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
77 |
|
78 |
binary-indep: install
|
|
79 |
dh_testdir
|
|
80 |
dh_testroot
|
|
|
59
by Fabien Tassin
* Don't ship MPL file but quote it in the copyright file |
81 |
dh_installdocs
|
|
42
by Fabien Tassin
* Ship a changelog file got from SVN logs |
82 |
dh_installchangelogs changelog
|
|
53
by Fabien Tassin
* Tweak rules a bit to make them cleaner |
83 |
dh_install
|
|
19
by Fabien Tassin
* Change the desktop icon to use the prism from the branding dir |
84 |
dh_installmime
|
|
29
by Fabien Tassin
* Add a manpage for each script in /usr/bin |
85 |
dh_installman
|
|
33
by Fabien Tassin
* Remove MimeType from WebApp desktop files, except from the main prism |
86 |
dh_icons
|
87 |
dh_desktop
|
|
|
53
by Fabien Tassin
* Tweak rules a bit to make them cleaner |
88 |
dh_link
|
|
33
by Fabien Tassin
* Remove MimeType from WebApp desktop files, except from the main prism |
89 |
dh_compress
|
|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
90 |
dh_fixperms
|
91 |
dh_installdeb
|
|
92 |
dh_gencontrol
|
|
93 |
dh_md5sums
|
|
94 |
dh_builddeb
|
|
95 |
||
96 |
binary-arch:
|
|
97 |
||
98 |
binary: binary-arch binary-indep
|
|
99 |
||
|
53
by Fabien Tassin
* Tweak rules a bit to make them cleaner |
100 |
clean: unpatch
|
101 |
dh_testdir
|
|
102 |
dh_testroot
|
|
|
34
by Fabien Tassin
* Drop cdbs from build-dep, it is nice for quilt but we don't really use it. |
103 |
rm -f build-stamp patches
|
|
1
by Fabien Tassin
* Initial release based on WebRunner 0.07 SVN 20070925r7025 |
104 |
rm -rf debian/tmp
|
|
71
by Fabien Tassin
* Use PNG instead of deprecated XPM for windows icons (LP: #205782) |
105 |
rm -f debian/prism-*.xpm debian/prism.png
|
|
47
by Fabien Tassin
* Rework the clean rule and update .PHONY |
106 |
dh_clean
|
107 |
||
|
50
by Fabien Tassin
* Make get-orig-source and new-orig-source look less shellish |
108 |
co:
|
109 |
rm -rf $(DEBIAN_TMP)
|
|
110 |
svn co $(TAG) $(SVN_URL) $(DEBIAN_TMP)
|
|
111 |
( cd $(DEBIAN_TMP)/trunk ; svn log > changelog )
|
|
|
59
by Fabien Tassin
* Don't ship MPL file but quote it in the copyright file |
112 |
sed '1,/^===/d' < debian/copyright > $(DEBIAN_TMP)/trunk/LICENSE
|
|
50
by Fabien Tassin
* Make get-orig-source and new-orig-source look less shellish |
113 |
|
114 |
pack: PKG_VERSION=$(shell grep ^Version= $(DEBIAN_TMP)/trunk/app/application.ini | cut -d= -f2 | tr -d '\r')+svn$(shell grep ^r $(DEBIAN_TMP)/trunk/changelog | head -1 | sed -e 's/^r\([0-9]*\) | [^|]* | \([^ ]*\).*/\2r\1/' | tr -d - ) |
|
115 |
pack:
|
|
116 |
rm -rf $(DEB_MOZ_APPLICATION)-$(PKG_VERSION) |
|
117 |
mv $(DEBIAN_TMP)/trunk $(DEB_MOZ_APPLICATION)-$(PKG_VERSION) |
|
118 |
tar zcf $(DEB_MOZ_APPLICATION)_$(PKG_VERSION).orig.tar.gz $(TAR_EXCLUDE) $(DEB_MOZ_APPLICATION)-$(PKG_VERSION) |
|
119 |
rm -rf $(DEBIAN_TMP) $(DEB_MOZ_APPLICATION)-$(PKG_VERSION) |
|
120 |
ls -l $(DEB_MOZ_APPLICATION)_$(PKG_VERSION).orig.tar.gz |
|
121 |
||
|
57
by Fabien Tassin
* Rename new-orig-source into get-orig-source to match Debian policy |
122 |
get-current-source: TAG = -r $(DEBIAN_SVN_REVISION) |
123 |
get-current-source: co pack |
|
124 |
||
125 |
get-orig-source: TAG = $(NULL) |
|
|
50
by Fabien Tassin
* Make get-orig-source and new-orig-source look less shellish |
126 |
get-orig-source: co pack |
127 |
||
|
57
by Fabien Tassin
* Rename new-orig-source into get-orig-source to match Debian policy |
128 |
.PHONY: binary binary-arch binary-indep build clean clean-dh get-orig-source get-current-source install co pack |