summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Hu2017-04-04 18:19:07 -0400
committerHenry Hu2017-04-04 18:23:42 -0400
commit2abfbe827d1e242240b25cf2609c9b86765f8a6b (patch)
tree6067fab8d1d96bb88022253239d04e156913fa47
downloadaur-2abfbe827d1e242240b25cf2609c9b86765f8a6b.tar.gz
noto fonts (lite version)
-rw-r--r--.SRCINFO23
-rw-r--r--66-noto-mono.conf16
-rw-r--r--66-noto-sans.conf16
-rw-r--r--66-noto-serif.conf16
-rw-r--r--PKGBUILD40
5 files changed, 111 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c7ebc35be97
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = noto-fonts
+ pkgdesc = Google Noto TTF fonts (lite version)
+ pkgver = 20170307
+ pkgrel = 1
+ url = https://www.google.com/get/noto/
+ arch = any
+ license = custom:SIL
+ provides = ttf-font
+ provides = noto-fonts
+ conflicts = noto-fonts
+ source = noto-fonts-60aa0da2ee84b11e78725b4577edc2e80b009d56.tar.gz::https://github.com/googlei18n/noto-fonts/archive/60aa0da2ee84b11e78725b4577edc2e80b009d56.tar.gz
+ source = 66-noto-sans.conf
+ source = 66-noto-serif.conf
+ source = 66-noto-mono.conf
+ sha256sums = 9d74d9fa04dfa182b8fa1a3caca3b65cc929b76e169bf59c6ce8c78b9c08be82
+ sha256sums = 65ff237a579d438eb1b1c90bf25b5818e15ab019dbbfed2fc283b9cd12e5177f
+ sha256sums = 27419c0557d05e13edbb244cd06a62d921c271c6c2f07126856519869035776e
+ sha256sums = 8c541eab8b44f6c7b02e981a4fbbd082eb6c1aa8285e11dede5f0a3ec0617772
+
+pkgname = noto-fonts-lite
+ optdepends = noto-fonts-cjk: CJK characters
+ optdepends = noto-fonts-emoji: Emoji characters
+
diff --git a/66-noto-mono.conf b/66-noto-mono.conf
new file mode 100644
index 00000000000..c0039739381
--- /dev/null
+++ b/66-noto-mono.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Noto Mono</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Noto Mono</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/66-noto-sans.conf b/66-noto-sans.conf
new file mode 100644
index 00000000000..012aebedf8b
--- /dev/null
+++ b/66-noto-sans.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Noto Sans</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Noto Sans</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/66-noto-serif.conf b/66-noto-serif.conf
new file mode 100644
index 00000000000..036baf77649
--- /dev/null
+++ b/66-noto-serif.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Noto Serif</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>Noto Serif</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c4483872021
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas@archlinux.org>
+
+pkgbase=noto-fonts
+pkgname=noto-fonts-lite
+_pkgver=2017-03-07
+_commit=60aa0da2ee84b11e78725b4577edc2e80b009d56 # master
+pkgver=${_pkgver//-}
+pkgrel=1
+pkgdesc="Google Noto TTF fonts (lite version)"
+arch=(any)
+url="https://www.google.com/get/noto/"
+license=(custom:SIL)
+provides=(ttf-font noto-fonts)
+conflicts=(noto-fonts)
+source=("$pkgbase-$_commit.tar.gz::https://github.com/googlei18n/noto-fonts/archive/$_commit.tar.gz"
+ 66-noto-sans.conf 66-noto-serif.conf 66-noto-mono.conf)
+sha256sums=('9d74d9fa04dfa182b8fa1a3caca3b65cc929b76e169bf59c6ce8c78b9c08be82'
+ '65ff237a579d438eb1b1c90bf25b5818e15ab019dbbfed2fc283b9cd12e5177f'
+ '27419c0557d05e13edbb244cd06a62d921c271c6c2f07126856519869035776e'
+ '8c541eab8b44f6c7b02e981a4fbbd082eb6c1aa8285e11dede5f0a3ec0617772')
+
+package_noto-fonts-lite() {
+ optdepends=('noto-fonts-cjk: CJK characters' 'noto-fonts-emoji: Emoji characters')
+
+ cd $pkgbase-*/
+ mkdir -p "$pkgdir"/usr/share/fonts/noto
+ # overwritten by the hinted version
+ #install -m644 unhinted/NotoMono-*.tt[fc] "$pkgdir"/usr/share/fonts/noto
+ #install -m644 unhinted/NotoSans-*.tt[fc] "$pkgdir"/usr/share/fonts/noto
+ #install -m644 unhinted/NotoSerif-*.tt[fc] "$pkgdir"/usr/share/fonts/noto
+ install -m644 hinted/NotoMono-*.tt[fc] "$pkgdir"/usr/share/fonts/noto
+ install -m644 hinted/NotoSans-*.tt[fc] "$pkgdir"/usr/share/fonts/noto
+ install -m644 hinted/NotoSerif-*.tt[fc] "$pkgdir"/usr/share/fonts/noto
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/noto-fonts/LICENSE
+
+ # Install fontconfig files
+ mkdir -p "$pkgdir"/etc/fonts/conf.avail
+ install -m644 "$srcdir"/*.conf "$pkgdir"/etc/fonts/conf.avail/
+}