abinfo "Installing example configuration file"
for example in "$SRCDIR"/examples/*.toml; do
    install -Dvm644 -t "$PKGDIR"/usr/share/doc/"$PKGNAME"/examples/ "$example"
done

abinfo "Installing additional assets"
for icon in "$SRCDIR"/files/icons/*.toml; do
    install -Dvm644 -t "$PKGDIR"/usr/share/"$PKGNAME"/icons/ "$icon"
done

for theme in "$SRCDIR"/files/themes/*.toml; do 
    install -Dvm644 -t "$PKGDIR"/usr/share/"$PKGNAME"/themes/ "$theme"
done

if ab_match_arch amd64 || ab_match_arch arm64; then
    abinfo "Installing manpage ..."
    cargo xtask generate-manpage
    install -Dvm644 "$SRCDIR"/man/i3status-rs.1 \
        -t "$PKGDIR"/usr/share/man/man1/
fi

abinfo "Removing temporary tool ..."
rm -v "$PKGDIR"/usr/bin/xtask
