melawy-welcome/postinstall.sh

16 lines
684 B
Bash
Raw Normal View History

2021-09-22 04:44:34 +05:00
#!/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/"
2021-09-22 04:44:34 +05:00
cp -r "${MESON_SOURCE_ROOT}/data" "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/"
2023-02-18 21:58:37 +05:00
rm -rf "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/data/img"
2023-02-19 02:50:26 +05:00
rm -f "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/cachyos-hello/data/pages/copy-release-trans.py"
2023-02-18 21:58:37 +05:00
2021-09-22 04:44:34 +05:00
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