aboutsummaryrefslogtreecommitdiffstats
path: root/community/cldr-emoji-annotation
diff options
context:
space:
mode:
Diffstat (limited to 'community/cldr-emoji-annotation')
-rw-r--r--community/cldr-emoji-annotation/APKBUILD40
-rw-r--r--community/cldr-emoji-annotation/cldr-emoji-annotation.pc5
2 files changed, 25 insertions, 20 deletions
diff --git a/community/cldr-emoji-annotation/APKBUILD b/community/cldr-emoji-annotation/APKBUILD
index 1c3a2843eb..fa4e1b66c5 100644
--- a/community/cldr-emoji-annotation/APKBUILD
+++ b/community/cldr-emoji-annotation/APKBUILD
@@ -1,33 +1,33 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=cldr-emoji-annotation
-pkgver=37.0.13.0.0.2
-_pkgver=37.0_13.0_0_2
+pkgver=39
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"
-makedepends="automake autoconf"
-source="https://github.com/fujiwarat/cldr-emoji-annotation/archive/$_pkgver/cldre-emoji-annotation-$_pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$_pkgver"
+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"
-prepare() {
- default_prepare
+package() {
+ find common/annotations -name "*.xml" -type f | while read -r i; do
+ install -Dm644 $i "$pkgdir"/usr/share/unicode/cldr/$i
+ done
- sed -i 's|@VERSION@|${pkgver%%_*}|g' $pkgname.pc.in
-}
+ find common/annotationsDerived -name "*.xml" -type f | while read -r i; do
+ install -Dm644 $i "$pkgdir"/usr/share/unicode/cldr/$i
+ done
-build() {
- ./autogen.sh --prefix=/usr
- make
-}
-
-package() {
- DESTDIR="$pkgdir" make install
+ find common/dtd -name "*.dtd" -type f | while read -r i; do
+ install -Dm644 $i "$pkgdir"/usr/share/unicode/cldr/$i
+ done
- # TODO(leo): pkgconfig file has weird version so a pc: is not made
- mkdir -p "$pkgdir"/usr/lib
- mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
+ 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="9c863c6f6494fdedd7b8db20f42dd803388e4f8165d2827ef358330862c52b6c84d98b55e87054fcb01bab906cc3fe0dd351d9d8063f74b988ca686e5c9d2fa1 cldre-emoji-annotation-37.0_13.0_0_2.tar.gz"
+sha512sums="46c9a4a0660258fda22ccfff3d85405886003ef57ee75a66e50955bfe0d335f6579fe636ab74a8d347c5eeec9193875da6a51eddf80ff148338e8d29d28dbfa1 cldr-release-39.tar.gz
+ff107531ef75e92fe1b39df4050cc174ec8a25423e382e74c987e8adbc71667264eeaf410fc55152b1090b83e51a2c4d0650ad5c2ff697ebdc6f8c7ea163f994 cldr-emoji-annotation.pc"
diff --git a/community/cldr-emoji-annotation/cldr-emoji-annotation.pc b/community/cldr-emoji-annotation/cldr-emoji-annotation.pc
new file mode 100644
index 0000000000..78465de732
--- /dev/null
+++ b/community/cldr-emoji-annotation/cldr-emoji-annotation.pc
@@ -0,0 +1,5 @@
+prefix=/usr
+
+Name: cldr-emoji-annotations
+Description: annotation files in CLDR
+Version: version