Date: Monday, January 18, 2021 @ 16:47:20 Author: felixonmars Revision: 823526
upgpkg: unicode-cldr 38.0-2: split out unicode-cldr-annotations for fcitx5 (FS#69143) Modified: unicode-cldr/trunk/PKGBUILD ----------+ PKGBUILD | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-01-18 16:40:36 UTC (rev 823525) +++ PKGBUILD 2021-01-18 16:47:20 UTC (rev 823526) @@ -1,21 +1,33 @@ # Maintainer: Felix Yan <[email protected]> -pkgname=unicode-cldr +shopt -s extglob + +pkgbase=unicode-cldr +pkgname=(unicode-cldr unicode-cldr-annotations) pkgver=38.0 -pkgrel=1 +pkgrel=2 pkgdesc="Unicode Common Locale Data Repository" arch=('any') url="http://cldr.unicode.org/" license=('custom') -provides=('cldr-emoji-annotation') -conflicts=('cldr-emoji-annotation') -replaces=('cldr-emoji-annotation') source=("https://unicode.org/Public/cldr/${pkgver%.*}/cldr-common-$pkgver.zip") sha512sums=('76a2cdfbe74bd25825dd0a91f81d3651d6baab374b7cffd2346d9194b30d2bf16940e448ede5b1c5f470ad2ff7df082a957ec6eade336b9baaafd40870648b1e') -package() { - install -dm755 "$pkgdir"/usr/share/unicode/cldr - cp -r common "$pkgdir"/usr/share/unicode/cldr/ +package_unicode-cldr-annotations() { + pkgdesc="Unicode Common Locale Data Repository (annotations only)" - install -Dm644 unicode-license.txt "$pkgdir"/usr/share/licenses/$pkgname/unicode-license.txt + cd common + install -dm755 "$pkgdir"/usr/share/unicode/cldr/common + cp -r annotations "$pkgdir"/usr/share/unicode/cldr/common/ + install -Dm644 ../unicode-license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ } + +package_unicode-cldr() { + depends=('unicode-cldr-annotations') + + cd common + install -dm755 "$pkgdir"/usr/share/unicode/cldr/common + cp -r !(annotations) "$pkgdir"/usr/share/unicode/cldr/common/ + + install -Dm644 ../unicode-license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}
