Last active
September 22, 2022 04:06
-
-
Save codefiles/bfcb09c3e19f972685d2bd86bec3766b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index f02dd693..b9ae10b1 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -180,13 +180,13 @@ package_glibc() { | |
install -m755 "${srcdir}"/locale-gen "${pkgdir}"/usr/bin | |
+ # Generate and add SUPPORTED file | |
+ sed -e '1,3d' -e 's|/| |g' -e 's| \\||g' -i "${srcdir}"/glibc/localedata/SUPPORTED | |
+ install -m644 "${srcdir}"/glibc/localedata/SUPPORTED "${pkgdir}"/usr/share/i18n/SUPPORTED | |
+ | |
# Create /etc/locale.gen | |
install -m644 "${srcdir}"/locale.gen.txt "${pkgdir}"/etc/locale.gen | |
- sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \ | |
- "${srcdir}"/glibc/localedata/SUPPORTED >> "${pkgdir}"/etc/locale.gen | |
- | |
- # Add SUPPORTED file | |
- install -m644 "${srcdir}"/glibc/localedata/SUPPORTED "${pkgdir}"/usr/share/i18n/SUPPORTED | |
+ sed 's|^|#|g' "${srcdir}"/glibc/localedata/SUPPORTED >> "${pkgdir}"/etc/locale.gen | |
# install C.UTF-8 so that it is always available | |
install -dm755 "${pkgdir}"/usr/lib/locale | |
diff --git a/locale.gen.txt b/locale.gen.txt | |
index 422d281c..e32af296 100644 | |
--- a/locale.gen.txt | |
+++ b/locale.gen.txt | |
@@ -12,6 +12,6 @@ | |
# The locale-gen command will generate all the locales, | |
# placing them in /usr/lib/locale. | |
# | |
-# A list of supported locales is included in this file. | |
-# Uncomment the ones you need. | |
+# A list of supported locales is given in /usr/share/i18n/SUPPORTED | |
+# and is included in this file. Uncomment the needed locales below. | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment