Guest User

Untitled

a guest
May 16th, 2025
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | Source Code | 0 0
  1. # Maintainer: andreas_baumann (https://aur.archlinux.org/account/andreas_baumann)
  2. # Contributor: dreieck (https://aur.archlinux.org/account/dreieck)
  3. # Contributor: Ujhhgtg (https://aur.archlinux.org/account/Ujhhgtg)
  4.  
  5. ## Based on `PKGBUILD` for package `icu71`, version 71.1-1, by Ujhhgtg (https://aur.archlinux.org/account/Ujhhgtg).
  6.  
  7. _pkgname=icu
  8. _pkgmainver=74
  9. _pkgminorver=2
  10. pkgname="${_pkgname}${_pkgmainver}"
  11. pkgver="${_pkgmainver}.${_pkgminorver}"
  12. pkgrel=9
  13. pkgdesc="International Components for Unicode library (legacy version ${_pkgmainver})."
  14. arch=(
  15. 'i486'
  16. 'i686'
  17. 'pentium4'
  18. 'x86_64'
  19. 'armv6h'
  20. 'armv7h'
  21. 'aarch64'
  22. )
  23. url="http://www.icu-project.org/"
  24. license=('Unicode-3.0')
  25. depends=(
  26. 'gcc-libs'
  27. 'glibc'
  28. )
  29. makedepends=(
  30. 'clang'
  31. 'make'
  32. 'patch'
  33. 'python'
  34. )
  35. provides=(
  36. # "${_pkgname}=${pkgver}" # Do not provide `icu` itself, since the executable tools are not provided.
  37. "libicudata.so=${_pkgmainver}"
  38. "libicui18n.so=${_pkgmainver}"
  39. "libicuio.so=${_pkgmainver}"
  40. "libicutest.so=${_pkgmainver}"
  41. "libicutu.so=${_pkgmainver}"
  42. "libicuuc.so=${_pkgmainver}"
  43. )
  44. conflicts=(
  45. "${_pkgname}=${_pkgmainver}"
  46. "${_pkgname}=${_pkgmainver}.0"
  47. "${_pkgname}=${_pkgmainver}.1"
  48. "${_pkgname}=${_pkgmainver}.2"
  49. "${_pkgname}=${_pkgmainver}.3"
  50. "${_pkgname}=${_pkgmainver}.4"
  51. "${_pkgname}=${_pkgmainver}.5"
  52. "${_pkgname}=${_pkgmainver}.6"
  53. "${_pkgname}=${_pkgmainver}.7"
  54. "${_pkgname}=${_pkgmainver}.8"
  55. "${_pkgname}=${_pkgmainver}.9"
  56. "libicudata.so=${_pkgmainver}"
  57. "libicui18n.so=${_pkgmainver}"
  58. "libicuio.so=${_pkgmainver}"
  59. "libicutest.so=${_pkgmainver}"
  60. "libicutu.so=${_pkgmainver}"
  61. "libicuuc.so=${_pkgmainver}"
  62. )
  63. source=(
  64. "https://github.com/unicode-org/icu/releases/download/release-${pkgver//./-}/icu4c-${pkgver//./_}-src.tgz"
  65. #"https://github.com/unicode-org/icu/releases/download/release-${pkgver//./-}/icu4c-${pkgver//./_}-src.tgz.asc"
  66. "ICU-22132.patch"
  67. "icudata-stdlibs.patch"
  68. "icu74-LICENSE"
  69. )
  70. md5sums=('94c0b370f43123ea92b146ebea9c709d'
  71. '7e501a2e7d14ce94b843e6853d96e4c2'
  72. '4e5202245fce364490334bd66b5edabc'
  73. 'e531a388be7c1df9a0fb7b4010c9c1d7')
  74. sha256sums=('68db082212a96d6f53e35d60f47d38b962e9f9d207a74cfac78029ae8ff5e08c'
  75. 'f534b472dd7a6961591466eef542e2c3ad698d3008c9b6af813c66cbc0b4dd8e'
  76. '13444e40ec8da75a3c4140448b25bdf51887a2691c9afdb0c63134ddd33d915b'
  77. 'e55522d81edc687a341a4411e0776e54ca654e90147f354a90458aaced4116af')
  78. #validpgpkeys=(
  79. # '4058F67406EAA6AB'
  80. #)
  81.  
  82. prepare() {
  83. cd icu/source
  84. # Required fix for thunderbird 115 to show Calendar and sidebar properly
  85. # https://bugzilla.mozilla.org/show_bug.cgi?id=1843007
  86. # https://unicode-org.atlassian.net/browse/ICU-22132
  87. patch -Np1 < "../../ICU-22132.patch"
  88. patch -p2 -i ${srcdir}/icudata-stdlibs.patch
  89. sed -r -i 's/(for ac_prog in )clang(\+\+)? /\1/g' configure
  90. }
  91.  
  92.  
  93. build()
  94. {
  95. cd "${_pkgname}/source"
  96.  
  97. ## `--enable-tools` is needed to build `genrb` binary, which is needed somewhere during the compilation process.
  98. ./configure \
  99. --prefix=/usr \
  100. --sysconfdir=/etc \
  101. --mandir=/usr/share/man \
  102. --sbindir=/usr/bin \
  103. --disable-icu-config \
  104. --disable-debug \
  105. --enable-release \
  106. --enable-shared \
  107. --disable-static \
  108. --disable-auto-cleanup \
  109. --enable-draft \
  110. --enable-renaming \
  111. --disable-tracing \
  112. --enable-plugins \
  113. --enable-dyload \
  114. --enable-rpath \
  115. --disable-weak-threads \
  116. --enable-extras \
  117. --enable-icuio \
  118. --enable-layoutex \
  119. --enable-tools \
  120. --disable-fuzzer \
  121. --enable-tests \
  122. --disable-samples \
  123. --with-data-packaging=library
  124.  
  125. make
  126. }
  127.  
  128. # disabled because Pytho 3.13 unittest has no attribute makeSuite anymore
  129. check()
  130. {
  131. cd "${_pkgname}/source"
  132.  
  133. # make -k check
  134. }
  135.  
  136. package()
  137. {
  138. cd "${_pkgname}/source"
  139.  
  140. make DESTDIR="${pkgdir}" install
  141.  
  142. ## Remove files that would make this package conflict with the generic `icu` package, and other "garbage" files:
  143. rm -rf "${pkgdir}"/usr/{bin,include,share,lib/{pkgconfig,*.so,icu/{current,Makefile.inc,pkgdata.inc}}}
  144.  
  145. ## Install license
  146. install -Dvm644 "${srcdir}/${pkgname}-LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  147. }
Advertisement
Add Comment
Please, Sign In to add comment