Date: Tuesday, October 20, 2015 @ 22:36:27 Author: arojas Revision: 249584
Add nototools, makedepends of noto-fonts-emoji Added: nototools/ nototools/trunk/ nototools/trunk/PKGBUILD nototools/trunk/data_path.patch -----------------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ data_path.patch | 12 ++++++++++++ 2 files changed, 44 insertions(+) Added: nototools/trunk/PKGBUILD =================================================================== --- nototools/trunk/PKGBUILD (rev 0) +++ nototools/trunk/PKGBUILD 2015-10-20 20:36:27 UTC (rev 249584) @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 249445 2015-10-16 23:55:30Z arojas $ +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=nototools +_commit=580e5294 +pkgver=git20151020 +pkgrel=1 +pkgdesc="Noto fonts support tools and scripts" +arch=(any) +url="https://www.google.com/get/noto/" +license=(Apache) +depends=(python2) +makedepends=(python2-setuptools) +source=("https://github.com/googlei18n/nototools/archive/$_commit.zip" data_path.patch) +sha256sums=('194c027b6e89febb7231daead7bc537ad7fed40fb3138f29df367b01d87a92d9' + '8ef0f97a049a28d5b9dd8afa8b89ead06ae2cb81ebbf17da5e6f053c51b9b28c') + +prepare() { + cd nototools-* + find -name '*.py' | xargs sed -e 's|/usr/bin/python|/usr/bin/python2|g' -e 's|/usr/bin/env python|/usr/bin/env python2|' -i + +# Fix data files location + patch -p0 -i ../data_path.patch +} + +package() { + cd nototools-* + python2 setup.py install --root="$pkgdir" --optimize=1 + + mkdir -p "$pkgdir"/usr/share/nototools + cp -r third_party "$pkgdir"/usr/share/nototools +} Added: nototools/trunk/data_path.patch =================================================================== --- nototools/trunk/data_path.patch (rev 0) +++ nototools/trunk/data_path.patch 2015-10-20 20:36:27 UTC (rev 249584) @@ -0,0 +1,12 @@ +--- nototools/unicode_data.py.orig 2015-10-20 19:21:32.611686276 +0000 ++++ nototools/unicode_data.py 2015-10-20 19:22:40.021351354 +0000 +@@ -329,8 +329,7 @@ + return frozenset(_script_code_to_long_name.keys()) + + +-_DATA_DIR_PATH = path.join(path.abspath(path.dirname(__file__)), +- os.pardir, "third_party", "ucd") ++_DATA_DIR_PATH = "/usr/share/nototools/third_party/ucd" + + + def open_unicode_data_file(data_file_name):