Added gcc_prefix to make_deb() function.

This commit is contained in:
Jason Heeris 2019-06-17 13:33:30 +10:00 committed by David Peter
parent 1ce2add943
commit 040c57e007
1 changed files with 4 additions and 1 deletions

View File

@ -57,6 +57,7 @@ make_deb() {
local conflictname local conflictname
local homepage local homepage
local maintainer local maintainer
local gcc_prefix
homepage="https://github.com/sharkdp/fd" homepage="https://github.com/sharkdp/fd"
maintainer="David Peter <mail@david-peter.de>" maintainer="David Peter <mail@david-peter.de>"
@ -64,9 +65,11 @@ make_deb() {
case $TARGET in case $TARGET in
x86_64*) x86_64*)
architecture=amd64 architecture=amd64
gcc_prefix=""
;; ;;
i686*) i686*)
architecture=i386 architecture=i386
gcc_prefix=""
;; ;;
arm*hf) arm*hf)
architecture=armhf architecture=armhf
@ -90,7 +93,7 @@ make_deb() {
# copy the main binary # copy the main binary
install -Dm755 "target/$TARGET/release/$PROJECT_NAME" "$tempdir/usr/bin/$PROJECT_NAME" install -Dm755 "target/$TARGET/release/$PROJECT_NAME" "$tempdir/usr/bin/$PROJECT_NAME"
strip "$tempdir/usr/bin/$PROJECT_NAME" "${gcc_prefix}"strip "$tempdir/usr/bin/$PROJECT_NAME"
# manpage # manpage
install -Dm644 "doc/$PROJECT_NAME.1" "$tempdir/usr/share/man/man1/$PROJECT_NAME.1" install -Dm644 "doc/$PROJECT_NAME.1" "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"