# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer:
pkgname=cldr-emoji-annotation
pkgver=43
pkgrel=0
pkgdesc="Emoji annotation files in CLDR"
arch="noarch"
url="https://github.com/fujiwarat/cldr-emoji-annotation"
license="Unicode-DFS-2016 AND LGPL-2.0-or-later"
source="https://github.com/unicode-org/cldr/archive/release-$pkgver/cldr-release-$pkgver.tar.gz
	cldr-emoji-annotation.pc
	"
options="!check" # No code to test
builddir="$srcdir/cldr-release-$pkgver"

package() {
	find common/annotations -name "*.xml" -type f | while read -r i; do
		install -Dm644 $i "$pkgdir"/usr/share/unicode/cldr/$i
	done

	find common/annotationsDerived -name "*.xml" -type f | while read -r i; do
		install -Dm644 $i "$pkgdir"/usr/share/unicode/cldr/$i
	done

	find common/dtd -name "*.dtd" -type f | while read -r i; do
		install -Dm644 $i "$pkgdir"/usr/share/unicode/cldr/$i
	done

	install -Dm644 "$srcdir"/cldr-emoji-annotation.pc -t "$pkgdir"/usr/lib/pkgconfig/
	sed -i -e "s/version/$pkgver/g" "$pkgdir"/usr/lib/pkgconfig/cldr-emoji-annotation.pc
}

sha512sums="
0960df4987e68b831c73701e976bd4b42e6bbfef6c61d4d311938cca315980c9b11ea2b418d80131471464c26d3e158e17e95449a5ba0cc881385535f9f2909b  cldr-release-43.tar.gz
ff107531ef75e92fe1b39df4050cc174ec8a25423e382e74c987e8adbc71667264eeaf410fc55152b1090b83e51a2c4d0650ad5c2ff697ebdc6f8c7ea163f994  cldr-emoji-annotation.pc
"
