mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-04 03:27:16 +08:00
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Lib32 Packages for Chakra
|
|
|
|
_pkgbasename=icu
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=53.1
|
|
pkgrel=1
|
|
pkgdesc="International Components for Unicode library (32 bit)"
|
|
arch=('x86_64')
|
|
url="http://www.icu-project.org/"
|
|
license=('custom:icu')
|
|
depends=('lib32-gcc-libs' $_pkgbasename=$pkgver)
|
|
makedepends=('gcc-multilib')
|
|
source=(http://download.icu-project.org/files/icu4c/${pkgver}/icu4c-${pkgver//./_}-src.tgz
|
|
icu.8198.revert.icu5431.patch)
|
|
md5sums=('b73baa6fbdfef197608d1f69300919b9'
|
|
'ebd5470fc969c75e52baf4af94a9ee82')
|
|
|
|
|
|
prepare() {
|
|
cd ${srcdir}/icu/source
|
|
# fix Malayalam encoding https://bugzilla.redhat.com/show_bug.cgi?id=654200
|
|
patch -Rp3 -i ${srcdir}/icu.8198.revert.icu5431.patch
|
|
}
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
|
|
|
cd $srcdir/icu/source
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib32
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/icu/source"
|
|
make -k check |true # passes all except TestTwoDigitYear
|
|
}
|
|
|
|
package() {
|
|
cd icu/source
|
|
|
|
make -j1 DESTDIR="${pkgdir}" install
|
|
rm -rf "${pkgdir}/usr"/{include,sbin,share}
|
|
|
|
# keep icu-config-32
|
|
find "${pkgdir}/usr/bin" -type f -not -name icu-config -delete
|
|
mv "${pkgdir}/usr/bin"/icu-config{,-32}
|
|
|
|
install -d m644 "${pkgdir}/usr/share/licenses"
|
|
ln -s icu "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|