15 lines
588 B
Bash
Executable File
15 lines
588 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir -p "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/"
|
|
cp -r "${MESON_SOURCE_ROOT}/src/scripts" "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/"
|
|
cp -r "${MESON_SOURCE_ROOT}/data" "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/"
|
|
|
|
rm -rf "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/data/img"
|
|
|
|
cd "${MESON_SOURCE_ROOT}/po"
|
|
for lang in $(ls *.po); do
|
|
lang=${lang::-3}
|
|
mkdir -p ${DESTDIR}/usr/share/locale/${lang//_/-}/LC_MESSAGES
|
|
msgfmt -c -o ${DESTDIR}/usr/share/locale/${lang//_/-}/LC_MESSAGES/cachyos-hello.mo $lang.po
|
|
done
|