db-move: moved gnome-calendar from [testing] to [extra] (x86_64)
[arch-packages.git] / unicode-character-database / trunk / PKGBUILD
blob046000b1ba77e246a360f5a8a57b77d0a8e82796
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=unicode-character-database
4 pkgver=15.0.0
5 pkgrel=1
6 pkgdesc="Unicode Character Database"
7 url="https://www.unicode.org/"
8 arch=(any)
9 license=(BSD)
10 makedepends=(lynx)
11 source=("UCD-$pkgver.zip::https://www.unicode.org/Public/zipped/$pkgver/UCD.zip"
12         "Unihan-$pkgver.zip::https://www.unicode.org/Public/zipped/$pkgver/Unihan.zip"
13         "unicode-license.html::https://www.unicode.org/license.html")
14 noextract=({UCD,Unihan}-$pkgver.zip)
15 sha512sums=('442a99694fccf0d1ff6f6236bec2cff7408eef4d9dba575ba4f5dc45cebf4d2b1b30334ef8a843887a0f410b24e0f79f7f30f06a195659def998875981604a6a'
16             'd9cf39adebe83ed0fd8d473cf057b8aa8b2362019d9f7ee7afc041501b1bbbe4d13050350ac40ce4a020cd1d64d52548fe262c3b2893934a032e1de8075e964c'
17             'd28bdea752a53463ae19b527c1e3221870cf3292218b3563d9820eb2fe34a5a9a98d622d2b78293779203bcd3f22ec0cd675e7651f79267bc02b35516fb3b0c7')
19 build() {
20   lynx -dump -display_charset=utf-8 unicode-license.html > LICENSE
23 package() {
24   local x
25   for x in UCD Unihan; do
26     install -Dm644 $x-$pkgver.zip "$pkgdir/usr/share/unicode/$x.zip"
27     bsdtar -C "$pkgdir/usr/share/unicode" -x --no-same-owner --no-same-permissions -f $x-$pkgver.zip
28   done
30   # FS#49938: A bunch of compatibility symlinks
31   ln -s . "$pkgdir/usr/share/unicode/ucd"
32   for x in $pkgname unicode-data unidata; do
33     ln -s unicode "$pkgdir/usr/share/$x"
34   done
36   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
39 # vim:set sw=2 sts=-1 et: