46 lines
1.0 KiB
Python
46 lines
1.0 KiB
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("78.3")
|
|
description("a mature, widely used set of C/C++ libraries providing Unicode and Globalization support for software applications")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url(
|
|
"https://github.com/unicode-org/icu/releases/download/release-78.3/icu4c-78.3-sources.tgz"
|
|
)
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
os.chdir("source")
|
|
cpp.configure(
|
|
[
|
|
"--enable-plugins",
|
|
"--prefix=/",
|
|
f"--bindir={get_prefix('icu4c')}/bin",
|
|
f"--sbindir={get_prefix('icu4c')}/sbin",
|
|
f"--libdir={get_prefix('libicu4c')}/lib",
|
|
f"--includedir={get_prefix('libicu4c-dev')}/include",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libicu4c")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("icu4c")
|
|
cpp.use_auto_pack(["bin"])
|
|
dep("libicu4c (same)")
|
|
|
|
package("libicu4c-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("libicu4c (same)")
|