abinfo "Building polyphone ..." 
qmake-qt5 CONFIG+=release CONFIG+=force_debug_info "$SRCDIR"/sources/polyphone.pro
make

abinfo "Installing polyphone ..."
install -vDm 755 "$SRCDIR"/bin/polyphone \
    -t "$PKGDIR"/usr/bin/
install -vDm 644 "$SRCDIR"/sources/resources/polyphone.png \
    -t "$PKGDIR"/usr/share/icons/hicolor/512x512/apps
install -vDm 644 "$SRCDIR"/sources/contrib/man/fr/man1/polyphone.*1 \
    -t "$PKGDIR"/usr/share/man/fr/man1/
install -vDm 644 "$SRCDIR"/sources/contrib/man/man1/polyphone.*1 \
    -t "$PKGDIR"/usr/share/man/man1/
install -vDm 644 "$SRCDIR"/sources/contrib/io.polyphone.polyphone.desktop \
    -t "$PKGDIR"/usr/share/applications/
install -vDm 644 "$SRCDIR"/sources/resources/polyphone.png \
    -t "$PKGDIR"/usr/share/icons/hicolor/512x512/mimetypes/audio-x-soundfont.png
install -vDm 644 "$SRCDIR"/sources/contrib/polyphone.xml \
    -t "$PKGDIR"/usr/share/metainfo/
install -vDm 644 "$SRCDIR"/sources/contrib/polyphone.xml \
    -t "$PKGDIR"/usr/share/mime/packages/
install -vDm 644 "$SRCDIR"/{README.md,sources/changelog} \
    -t "$PKGDIR"/usr/share/doc/polyphone/
