mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
glibc: sync install script with Arch Linux [core]
locale-gen is now called on each update. The update to 2.22-4 broke locales so force an update by raising the pkgrel to 4.1.
This commit is contained in:
parent
76b8808b25
commit
af027102c3
2 changed files with 10 additions and 10 deletions
|
@ -16,7 +16,7 @@ noautobuild=1
|
||||||
|
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
pkgver=2.22
|
pkgver=2.22
|
||||||
pkgrel=4
|
pkgrel=4.1
|
||||||
pkgdesc="GNU C Library"
|
pkgdesc="GNU C Library"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.gnu.org/software/libc"
|
url="http://www.gnu.org/software/libc"
|
||||||
|
|
|
@ -2,21 +2,21 @@ infodir=usr/share/info
|
||||||
filelist=(libc.info{,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11})
|
filelist=(libc.info{,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11})
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
|
#if [[ $(vercmp 2.22-3 $2) = 1 ]]; then
|
||||||
|
locale-gen
|
||||||
|
#fi
|
||||||
|
|
||||||
ldconfig -r .
|
ldconfig -r .
|
||||||
|
|
||||||
if [[ $(vercmp 2.22-1 $2) = 1 ]]; then
|
[[ -x usr/bin/install-info ]] || return 0
|
||||||
locale-gen
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -x usr/bin/install-info ] || return 0
|
|
||||||
for file in ${filelist[@]}; do
|
for file in ${filelist[@]}; do
|
||||||
usr/bin/install-info $infodir/$file.gz $infodir/dir 2> /dev/null
|
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_remove() {
|
pre_remove() {
|
||||||
[ -x usr/bin/install-info ] || return 0
|
[[ -x usr/bin/install-info ]] || return 0
|
||||||
for file in ${filelist[@]}; do
|
for file in ${filelist[@]}; do
|
||||||
usr/bin/install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
|
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue