@@ -59,6 +59,11 @@ make_deb() {
5959 local dpkgname
6060 local conflictname
6161 local gcc_prefix
62+ local homepage
63+ local maintainer
64+
65+ homepage="https://github.com/sharkdp/bat"
66+ maintainer="David Peter <mail@david-peter.de>"
6267
6368 case $TARGET in
6469 x86_64*)
@@ -105,6 +110,44 @@ make_deb() {
105110 install -Dm644 README.md "$tempdir/usr/share/doc/$PROJECT_NAME/README.md"
106111 install -Dm644 LICENSE-MIT "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-MIT"
107112 install -Dm644 LICENSE-APACHE "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-APACHE"
113+ cat > "$tempdir/usr/share/doc/$PROJECT_NAME/copyright" <<EOF
114+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
115+Upstream-Name: $PROJECT_NAME
116+Source: $homepage
117+
118+Files: *
119+Copyright: $maintainer
120+License: Apache-2.0 or MIT
121+
122+License: Apache-2.0
123+ On Debian systems, the complete text of the Apache-2.0 can be found in the
124+ file /usr/share/common-licenses/Apache-2.0.
125+
126+License: MIT
127+ Permission is hereby granted, free of charge, to any
128+ person obtaining a copy of this software and associated
129+ documentation files (the "Software"), to deal in the
130+ Software without restriction, including without
131+ limitation the rights to use, copy, modify, merge,
132+ publish, distribute, sublicense, and/or sell copies of
133+ the Software, and to permit persons to whom the Software
134+ is furnished to do so, subject to the following
135+ conditions:
136+ .
137+ The above copyright notice and this permission notice
138+ shall be included in all copies or substantial portions
139+ of the Software.
140+ .
141+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
142+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
143+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
144+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
145+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
146+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
147+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
148+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
149+ DEALINGS IN THE SOFTWARE.
150+EOF
108151
109152 # Control file
110153 mkdir "$tempdir/DEBIAN"