Skip to content

Instantly share code, notes, and snippets.

@codefiles
Last active September 22, 2022 04:06
Show Gist options
  • Save codefiles/bfcb09c3e19f972685d2bd86bec3766b to your computer and use it in GitHub Desktop.
Save codefiles/bfcb09c3e19f972685d2bd86bec3766b to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index 7d659513..6f541939 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -180,15 +180,15 @@ package_glibc() {
install -m755 "${srcdir}"/locale-gen "${pkgdir}"/usr/bin
- # 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 to pkg
sed -e '1,3d' -e 's|/| |g' -e 's| \\||g' \
"${srcdir}"/glibc/localedata/SUPPORTED > "${pkgdir}"/usr/share/i18n/SUPPORTED
+ # Create /etc/locale.gen
+ install -m644 "${srcdir}"/locale.gen.txt "${pkgdir}"/etc/locale.gen
+ sed 's|^|#|g' \
+ "${pkgdir}"/usr/share/i18n/SUPPORTED >> "${pkgdir}"/etc/locale.gen
+
# install C.UTF-8 so that it is always available
install -dm755 "${pkgdir}"/usr/lib/locale
cp -r "${srcdir}"/C.UTF-8 -t "${pkgdir}"/usr/lib/locale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment