void-packages/srcpkgs/icu/template

60 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template build file for 'icu'.
pkgname=icu
2012-07-21 09:51:16 +02:00
version=49.1.2
_distver="49_1_2"
revision=5
2012-07-21 09:51:16 +02:00
wrksrc=icu
2012-02-09 13:39:55 +01:00
build_wrksrc=source
build_style=gnu-configure
short_desc="Robust and full-featured Unicode services"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-07-21 09:51:16 +02:00
homepage="http://www.icu-project.org/"
license="ICU License /usr/share/licenses/icu/license.html"
distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${_distver}-src.tgz"
checksum=cce83cc88a2ff79d65c05426facbf30530bbe13a1cfda04b3ab81b55414cf5a3
if [ "$CROSS_BUILD" ]; then
configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu"
fi
2013-03-19 07:46:50 +01:00
pre_configure() {
if [ "$CROSS_BUILD" ]; then
2013-03-19 07:46:50 +01:00
# Configure and build for host.
mkdir host-build
cd host-build
env CC=gcc LD=ld CXX=g++ AR=ar RANLIB=ranlib \
AS=as STRIP=strip CFLAGS="-Os" CXXFLAGS="-Os" \
../configure --prefix=/
make ${makejobs}
mkdir -p ${wrksrc}/host-icu/config
cp config/icucross.mk ${wrksrc}/host-icu/config
make DESTDIR=${wrksrc}/host-icu install
mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin
fi
}
post_install() {
2012-07-21 09:51:16 +02:00
vinstall $wrksrc/license.html 644 usr/share/licenses/icu
}
icu-devel_package() {
depends="libstdc++-devel icu-libs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/icu
vmove usr/lib/pkgconfig
vmove usr/share/icu
vmove usr/bin/icu-config
vmove "usr/share/man/man1/icu-config*"
vmove "usr/lib/*.so"
}
}
icu-libs_package() {
short_desc+=" - shared libs"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}