~gfunkmonk/+junk/chromium-debian

« back to all changes in this revision

Viewing changes to debian/generate-snappy.mk

  • Committer: Matt Rinsch
  • Date: 2017-11-03 20:14:52 UTC
  • Revision ID: gfunkmonk@gmail.com-20171103201452-0u5y7w67430p7205
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
SNAPPY ?= /tmp/chromium-snappy/apps/chromium
 
4
 
 
5
all: $(SNAPPY)/meta/package.yaml $(SNAPPY)/meta/readme.md
 
6
 
 
7
DEB_HOST_ARCH ?= $(shell arch)
 
8
 
 
9
$(SNAPPY)/meta/package.yaml: 
 
10
$(SNAPPY)/meta/package.yaml:
 
11
        @dpkg-parsechangelog |sed \
 
12
                -e '/^Source: / { s/^Source: .*/name: chromium/; p }' \
 
13
                -e '/^Maintainer: / { s/^Maintainer: /vendor: /; p }' \
 
14
                -e '/^ chromium-browser (/ { s/^ chromium-browser (\(.*\)) .*/version: \1/; p }' \
 
15
                -e d >$@
 
16
        @echo "architecture: $(DEB_HOST_ARCH)" >>$@
 
17
        @echo "icon: meta/chromium.svg" >>$@
 
18
        @echo "binaries:" >>$@
 
19
        @echo "  - name: chromium" >>$@
 
20
        @echo "description: safe, fast web browser; open-source version of Chrome" >>$@
 
21
        @echo "  A safe, fast, and stable way for all Internet users to experience the web." >>$@
 
22
        @echo >>$@
 
23
 
 
24
$(SNAPPY)/meta/readme.md:
 
25
        @echo "chromium" >$@
 
26
        @echo "========" >>$@
 
27
        @echo >>$@
 
28
        @echo "A safe, fast, and stable way for all Internet users to experience the web." >>$@