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
|
#!/usr/bin/make -f
SNAPPY ?= /tmp/chromium-snappy/apps/chromium
all: $(SNAPPY)/meta/package.yaml $(SNAPPY)/meta/readme.md
cd $(SNAPPY); snappy build
DEB_HOST_ARCH ?= $(shell arch)
$(SNAPPY)/meta/package.yaml:
$(SNAPPY)/meta/package.yaml:
mkdir -p $(SNAPPY)/meta
@dpkg-parsechangelog |sed \
-e '/^Source: / { s/^Source: .*/name: chromium/; p }' \
-e '/^Maintainer: / { s/^Maintainer: /vendor: /; p }' \
-e '/^ chromium-browser (/ { s/^ chromium-browser (\(.*\)) .*/version: \1/; p }' \
-e d >$@
@echo "architecture: $(DEB_HOST_ARCH)" >>$@
@echo "icon: meta/chromium.svg" >>$@
@echo "binaries:" >>$@
@echo " - name: chromium" >>$@
@echo "description: safe, fast web browser; open-source version of Chrome" >>$@
@echo " A safe, fast, and stable way for all Internet users to experience the web." >>$@
@echo >>$@
$(SNAPPY)/meta/readme.md:
mkdir -p $(SNAPPY)/meta
@echo "chromium" >$@
@echo "========" >>$@
@echo >>$@
@echo "A safe, fast, and stable way for all Internet users to experience the web." >>$@
|