chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

recipe (602B)


      1 name=chamesle-l10n
      2 version=0.8.0
      3 rel=2
      4 desc="Chamesle's own apps in every language"
      5 url=https://chamesle.org
      6 license=GPL-3.0-or-later
      7 source=
      8 # gettext-stub calls itself gettext 1 and wins over the real 0.22, and its msgfmt makes nothing
      9 makedeps="gettext<1"
     10 depends=""
     11 
     12 build() {
     13     for f in *.po; do
     14         l=${f%.po}
     15         mkdir -p "$pkgdir/usr/share/locale/$l/LC_MESSAGES"
     16         msgfmt --check-format -o "$pkgdir/usr/share/locale/$l/LC_MESSAGES/chamesle.mo" "$f"
     17         [ -s "$pkgdir/usr/share/locale/$l/LC_MESSAGES/chamesle.mo" ] || { echo "no chamesle.mo for $l" >&2; exit 1; }
     18     done
     19 }