~chromium-team/chromium-browser/artful-beta

1139 by Chad MILLER
debian/generate-snappy.mk, debian/rules: Start to generate snap packages
1
#!/usr/bin/make -f
2
3
SNAPPY ?= /tmp/chromium-snappy/apps/chromium
4
5
all: $(SNAPPY)/meta/package.yaml $(SNAPPY)/meta/readme.md
1216 by Chad MILLER
debian/chromium-browser.desktop: Don't override WM class matching.
6
	cd $(SNAPPY); snappy build
1139 by Chad MILLER
debian/generate-snappy.mk, debian/rules: Start to generate snap packages
7
8
DEB_HOST_ARCH ?= $(shell arch)
9
10
$(SNAPPY)/meta/package.yaml: 
11
$(SNAPPY)/meta/package.yaml:
1216 by Chad MILLER
debian/chromium-browser.desktop: Don't override WM class matching.
12
	mkdir -p $(SNAPPY)/meta
1139 by Chad MILLER
debian/generate-snappy.mk, debian/rules: Start to generate snap packages
13
	@dpkg-parsechangelog |sed \
14
		-e '/^Source: / { s/^Source: .*/name: chromium/; p }' \
15
		-e '/^Maintainer: / { s/^Maintainer: /vendor: /; p }' \
16
		-e '/^ chromium-browser (/ { s/^ chromium-browser (\(.*\)) .*/version: \1/; p }' \
17
		-e d >$@
18
	@echo "architecture: $(DEB_HOST_ARCH)" >>$@
19
	@echo "icon: meta/chromium.svg" >>$@
20
	@echo "binaries:" >>$@
21
	@echo "  - name: chromium" >>$@
22
	@echo "description: safe, fast web browser; open-source version of Chrome" >>$@
23
	@echo "  A safe, fast, and stable way for all Internet users to experience the web." >>$@
24
	@echo >>$@
25
26
$(SNAPPY)/meta/readme.md:
1216 by Chad MILLER
debian/chromium-browser.desktop: Don't override WM class matching.
27
	mkdir -p $(SNAPPY)/meta
1139 by Chad MILLER
debian/generate-snappy.mk, debian/rules: Start to generate snap packages
28
	@echo "chromium" >$@
29
	@echo "========" >>$@
30
	@echo >>$@
31
	@echo "A safe, fast, and stable way for all Internet users to experience the web." >>$@