Fix file owner in deb package, closes #213

Also, fix a few lintian warnings / errors.
This commit is contained in:
sharkdp 2018-01-04 19:48:59 +01:00
parent 6be33fbf33
commit 050fa9c3b1
1 changed files with 5 additions and 2 deletions

View File

@ -78,6 +78,7 @@ make_deb() {
# manpage
install -Dm644 "doc/$PROJECT_NAME.1" "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"
gzip --best "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"
# readme and license
install -Dm644 README.md "$tempdir/usr/share/doc/$PROJECT_NAME/README.md"
@ -96,14 +97,16 @@ Package: $dpkgname
Version: $version
Section: utils
Priority: optional
Maintainer: David Peter
Maintainer: David Peter <mail@david-peter.de>
Architecture: $architecture
Provides: $PROJECT_NAME
Conflicts: $conflictname
Description: Simple, fast and user-friendly alternative to find
While fd does not seek to mirror all of find's powerful functionality, it
provides sensible (opinionated) defaults for 80% of the use cases.
EOF
dpkg-deb --build "$tempdir" "${dpkgname}_${version}_${architecture}.deb"
fakeroot dpkg-deb --build "$tempdir" "${dpkgname}_${version}_${architecture}.deb"
}