chroot-glibc: add support for en_US.UTF-8 locale; required by an upcoming xbps-src.
This commit is contained in:
parent
c047c427ee
commit
50e6f3cc22
|
@ -0,0 +1,16 @@
|
|||
# Generate en_US.UTF-8 locale.
|
||||
#
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
LOCALE_ARCHIVEDIR=usr/lib/locale
|
||||
LOCALE_ARCHIVE=${LOCALE_ARCHIVEDIR}/locale-archive
|
||||
LOCALE_ALIAS=usr/share/locale/locale.alias
|
||||
|
||||
[ -n "$POSIXLY_CORRECT" ] && unset POSIXLY_CORRECT
|
||||
[ -f $LOCALE_ARCHIVE ] && rm -f $LOCALE_ARCHIVE
|
||||
[ ! -d $LOCALE_ARCHIVEDIR ] && mkdir -p $LOCALE_ARCHIVEDIR
|
||||
|
||||
echo "Generating GNU libc locale: en_US.UTF-8 ..."
|
||||
localedef --prefix=. -c -f UTF-8 -i en_US -A $LOCALE_ALIAS en_US.UTF-8
|
||||
;;
|
||||
esac
|
|
@ -3,7 +3,7 @@ pkgname=chroot-glibc
|
|||
_majorver=2.17
|
||||
version=${_majorver}
|
||||
wrksrc="glibc-${version}"
|
||||
revision=6
|
||||
revision=7
|
||||
short_desc="The GNU C library -- for xbps-src use"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.gnu.org/software/libc"
|
||||
|
@ -78,8 +78,19 @@ do_install() {
|
|||
chmod 644 ${DESTDIR}/etc/ld.so.conf.d/usr_local.conf
|
||||
rm -f ${DESTDIR}/etc/ld.so.cache
|
||||
|
||||
# Remove unused stuff.
|
||||
# Copy required files for en_US.UTF-8 locale, we don't need anything else.
|
||||
mkdir -p ${wrksrc}/temp/{locale,charmaps}
|
||||
cp /usr/share/i18n/charmaps/UTF-8.gz ${wrksrc}/temp/charmaps
|
||||
cp /usr/share/i18n/locales/en_US ${wrksrc}/temp/locale
|
||||
cp /usr/share/i18n/locales/en_GB ${wrksrc}/temp/locale
|
||||
cp /usr/share/i18n/locales/i18n ${wrksrc}/temp/locale
|
||||
cp /usr/share/i18n/locales/iso14651_t1* ${wrksrc}/temp/locale
|
||||
cp /usr/share/i18n/locales/translit_* ${wrksrc}/temp/locale
|
||||
rm -rf ${DESTDIR}/usr/share
|
||||
vmkdir usr/share/i18n/charmaps
|
||||
vmkdir usr/share/i18n/locales
|
||||
mv ${wrksrc}/temp/charmaps/* ${DESTDIR}/usr/share/i18n/charmaps
|
||||
mv ${wrksrc}/temp/locale/* ${DESTDIR}/usr/share/i18n/locales
|
||||
|
||||
# Switch to /usr.
|
||||
vmkdir usr/sbin
|
||||
|
@ -111,7 +122,6 @@ chroot-glibc_package() {
|
|||
conflicts="glibc>=0 glibc-devel>=0"
|
||||
noverifyrdeps=yes
|
||||
pkg_install() {
|
||||
vmove etc
|
||||
vmove usr
|
||||
vmove all
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue