Add copyright file for deb package

ref https://github.com/sharkdp/fd/issues/416
This commit is contained in:
Laurent Arnoud 2019-03-09 21:21:24 +01:00 committed by David Peter
parent f15540e501
commit 97908beb97
1 changed files with 16 additions and 1 deletions

17
ci/before_deploy.bash vendored
View File

@ -55,6 +55,11 @@ make_deb() {
local version local version
local dpkgname local dpkgname
local conflictname local conflictname
local homepage
local maintainer
homepage="https://github.com/sharkdp/fd"
maintainer="David Peter <mail@david-peter.de>"
case $TARGET in case $TARGET in
x86_64*) x86_64*)
@ -91,6 +96,15 @@ make_deb() {
install -Dm644 README.md "$tempdir/usr/share/doc/$PROJECT_NAME/README.md" install -Dm644 README.md "$tempdir/usr/share/doc/$PROJECT_NAME/README.md"
install -Dm644 LICENSE-MIT "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-MIT" install -Dm644 LICENSE-MIT "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-MIT"
install -Dm644 LICENSE-APACHE "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-APACHE" install -Dm644 LICENSE-APACHE "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-APACHE"
cat > "$tempdir/usr/share/doc/$PROJECT_NAME/copyright" <<EOF
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: $PROJECT_NAME
Source: $homepage
Files: *
Copyright: $maintainer
License: Apache-2.0
EOF
# completions # completions
install -Dm644 target/$TARGET/release/build/$PROJECT_NAME-*/out/$PROJECT_NAME.bash "$tempdir/usr/share/bash-completion/completions/${PROJECT_NAME}" install -Dm644 target/$TARGET/release/build/$PROJECT_NAME-*/out/$PROJECT_NAME.bash "$tempdir/usr/share/bash-completion/completions/${PROJECT_NAME}"
@ -104,10 +118,11 @@ Package: $dpkgname
Version: $version Version: $version
Section: utils Section: utils
Priority: optional Priority: optional
Maintainer: David Peter <mail@david-peter.de> Maintainer: $maintainer
Architecture: $architecture Architecture: $architecture
Provides: $PROJECT_NAME Provides: $PROJECT_NAME
Conflicts: $conflictname Conflicts: $conflictname
Homepage: $homepage
Description: Simple, fast and user-friendly alternative to find Description: Simple, fast and user-friendly alternative to find
While fd does not seek to mirror all of find's powerful functionality, it While fd does not seek to mirror all of find's powerful functionality, it
provides sensible (opinionated) defaults for 80% of the use cases. provides sensible (opinionated) defaults for 80% of the use cases.