From b8139f0661ceb9d4b5d49b596ffdc8b6855183e7 Mon Sep 17 00:00:00 2001 From: Jeff Huang Date: Fri, 12 Oct 2018 03:36:10 +0200 Subject: [PATCH] [skip-ci] unicode-character-database: import as ibus deps --- unicode-character-database/LICENSE | 33 +++++++++++++++++++++++++++++ unicode-character-database/PKGBUILD | 28 ++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 unicode-character-database/LICENSE create mode 100644 unicode-character-database/PKGBUILD diff --git a/unicode-character-database/LICENSE b/unicode-character-database/LICENSE new file mode 100644 index 000000000..3de83aa5e --- /dev/null +++ b/unicode-character-database/LICENSE @@ -0,0 +1,33 @@ +COPYRIGHT AND PERMISSION NOTICE + +Copyright © 1991-2017 Unicode, Inc. All rights reserved. +Distributed under the Terms of Use in http://www.unicode.org/copyright.html. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Unicode data files and any associated documentation +(the "Data Files") or Unicode software and any associated documentation +(the "Software") to deal in the Data Files or Software +without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, and/or sell copies of +the Data Files or Software, and to permit persons to whom the Data Files +or Software are furnished to do so, provided that either +(a) this copyright and permission notice appear with all copies +of the Data Files or Software, or +(b) this copyright and permission notice appear in associated +Documentation. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT OF THIRD PARTY RIGHTS. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS +NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL +DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THE DATA FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder +shall not be used in advertising or otherwise to promote the sale, +use or other dealings in these Data Files or Software without prior +written authorization of the copyright holder. diff --git a/unicode-character-database/PKGBUILD b/unicode-character-database/PKGBUILD new file mode 100644 index 000000000..5a3f0038a --- /dev/null +++ b/unicode-character-database/PKGBUILD @@ -0,0 +1,28 @@ +# Contributions from Arch: +# Maintainer: Jan Alexander Steffens (heftig) + +pkgname=unicode-character-database +pkgver=11.0.0 +pkgrel=1 +pkgdesc="Unicode Character Database" +arch=(any) +license=(BSD) +url="http://www.unicode.org/" +source=("UCD-$pkgver.zip::http://www.unicode.org/Public/zipped/$pkgver/UCD.zip" + "Unihan-$pkgver.zip::http://www.unicode.org/Public/zipped/$pkgver/Unihan.zip" + LICENSE) +noextract=({UCD,Unihan}-$pkgver.zip) +sha512sums=('954a499ff072727c8778e711fb1753834adf09277c9e9a2592c02b59971860f9a407c7e9985ed1e6bdda7a3cf3b1cd6316599c4bffe8b0625413f874486830c1' + 'a045e79545f1ec3529a8556d41c73b20809979e002f98314068c6f91daa79abb2ab3ab383090651b55fb55e343d8fcf67bea822d93d6e3221a206d58ef9e3a7b' + '9ba78d68ed39745e55538180f132ff47423edb46adde7ac3e62a489870d153808bcf2db57b77e6a7cdae9b4fa03aba99cf228315b9a15be090bedef00b9e69ed') + +package() { + for _f in UCD Unihan; do + install -Dm644 $_f-$pkgver.zip "$pkgdir/usr/share/unicode/$_f.zip" + bsdtar -C "$pkgdir/usr/share/unicode" -x --no-same-owner --no-same-permissions -f $_f-$pkgver.zip + done + + ln -s unicode "$pkgdir/usr/share/$pkgname" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}