abinfo "Installing GSchema ..."
install -Dvm644 "$SRCDIR"/metainfo/io.github.waylyrics.Waylyrics.gschema.xml \
    "$PKGDIR"/usr/share/glib-2.0/schemas/io.github.waylyrics.Waylyrics.gschema.xml

abinfo "Installing desktop file ..."
install -Dvm644 "$SRCDIR"/metainfo/io.github.waylyrics.Waylyrics.desktop \
    "$PKGDIR"/usr/share/applications/io.github.waylyrics.Waylyrics.desktop

abinfo "Installing desktop icons ..."
cp -rv "$SRCDIR"/res/icons "$PKGDIR"/usr/share/icons

abinfo "Installing themes ..."
install -dvm755 "$PKGDIR"/usr/share/waylyrics
cp -rv "$SRCDIR"/themes "$PKGDIR"/usr/share/waylyrics/themes

abinfo "Installing locales ..."
pushd "$SRCDIR"/locales
for po in $(find . -type f -name '*.po')
do
    mkdir -vp "$PKGDIR"/usr/share/locale/"${po#/*}"
    msgfmt -vo "$PKGDIR"/usr/share/locale/"${po%.po}".mo "$po"
done
popd
