abinfo "Installing asset icons ..."
install -Dvm644 \
    "$SRCDIR"/{arrow,radio}.png \
    -t "$PKGDIR"/usr/share/$PKGNAME/

for i in theme-*.conf; do
    export i="${i%.conf}"
    export pretty="${i#theme-}"
    export pretty="${pretty^}"
    abinfo "Installing Fcitx5 Material Color theme, variant $pretty ..."
    install -Dvm644 "$SRCDIR"/${i}.conf \
        "$PKGDIR"/usr/share/fcitx5/themes/Material-Color-$pretty/theme.conf

    abinfo "Symlinking asset icons for variant $pretty ..."
    ln -sv ../../../fcitx5-material-color/{arrow,radio}.png \
        "$PKGDIR"/usr/share/fcitx5/themes/Material-Color-$pretty/

    abinfo "Setting proper theme name for variant $pretty ..."
    sed -i "s/^Name=.*/Name=Material Color ($pretty)/" \
        "$PKGDIR"/usr/share/fcitx5/themes/Material-Color-$pretty/theme.conf
done
