[arch-commits] Commit in nototools (4 files)

Antonio Rojas arojas at archlinux.org
Tue Oct 20 20:38:13 UTC 2015


    Date: Tuesday, October 20, 2015 @ 22:38:13
  Author: arojas
Revision: 249585

archrelease: copy trunk to extra-any

Added:
  nototools/repos/
  nototools/repos/extra-any/
  nototools/repos/extra-any/PKGBUILD
    (from rev 249584, nototools/trunk/PKGBUILD)
  nototools/repos/extra-any/data_path.patch
    (from rev 249584, nototools/trunk/data_path.patch)

-----------------+
 PKGBUILD        |   32 ++++++++++++++++++++++++++++++++
 data_path.patch |   12 ++++++++++++
 2 files changed, 44 insertions(+)

Copied: nototools/repos/extra-any/PKGBUILD (from rev 249584, nototools/trunk/PKGBUILD)
===================================================================
--- repos/extra-any/PKGBUILD	                        (rev 0)
+++ repos/extra-any/PKGBUILD	2015-10-20 20:38:13 UTC (rev 249585)
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 249445 2015-10-16 23:55:30Z arojas $
+# Maintainer: Antonio Rojas <arojas at 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
+}

Copied: nototools/repos/extra-any/data_path.patch (from rev 249584, nototools/trunk/data_path.patch)
===================================================================
--- repos/extra-any/data_path.patch	                        (rev 0)
+++ repos/extra-any/data_path.patch	2015-10-20 20:38:13 UTC (rev 249585)
@@ -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):



More information about the arch-commits mailing list