opt/icu/Pkgfile

28 lines
783 B
Plaintext
Raw Normal View History

2012-10-30 22:47:36 +01:00
# Description: Widely used set of C/C++ libraries providing Unicode and Globalization support.
# URL: https://icu.unicode.org
2023-06-18 19:28:49 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Optional: clang lld
2012-10-30 22:47:36 +01:00
name=icu
2023-06-18 19:28:49 +02:00
version=73.2
2012-10-30 22:47:36 +01:00
release=1
source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz)
2012-10-30 22:47:36 +01:00
build() {
2023-06-18 19:28:49 +02:00
cd icu/source
2012-10-30 22:47:36 +01:00
2023-06-18 19:28:49 +02:00
# icu tries to use clang by default, only do so if installed
prt-get isinst clang lld && LDFLAGS+=' -fuse-ld=lld -flto=thin'
prt-get isinst clang && export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib || \
export CC=gcc CXX=g++
2016-03-18 11:26:33 +01:00
2023-06-18 19:28:49 +02:00
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-samples \
--disable-tests
2012-10-30 22:47:36 +01:00
2023-06-18 19:28:49 +02:00
make
make -j1 DESTDIR=$PKG install
2012-10-30 22:47:36 +01:00
}