summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalflife2016-04-12 19:18:32 +0800
committerhalflife2016-04-12 19:18:32 +0800
commit628c495a28420ddcf273a01131d3a6c390b898b5 (patch)
treeded26c81be55dad35d7cc7a52c7e94bf27414e45
downloadaur-628c495a28420ddcf273a01131d3a6c390b898b5.tar.gz
20150617
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD18
-rw-r--r--noto-fonts-sc.install15
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..13861b26c4d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = noto-fonts-sc
+ pkgdesc = Noto CJK-SC fonts for Simplified Chinese
+ pkgver = 20150617
+ pkgrel = 1
+ url = https://github.com/googlei18n/noto-cjk
+ install = noto-fonts-sc.install
+ arch = any
+ license = custom: SIL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = https://github.com/googlei18n/noto-cjk/raw/master/NotoSansCJKsc-DemiLight.otf
+ sha256sums = SKIP
+
+pkgname = noto-fonts-sc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..518aaf03fdf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,18 @@
+# Maintainer: halflife <pigoig_At_gmail_com>
+
+pkgname=noto-fonts-sc
+pkgver=20150617
+pkgrel=1
+pkgdesc="Noto CJK-SC fonts for Simplified Chinese"
+arch=(any)
+depends=(fontconfig xorg-font-utils)
+source=("https://github.com/googlei18n/noto-cjk/raw/master/NotoSansCJKsc-DemiLight.otf")
+url="https://github.com/googlei18n/noto-cjk"
+install=${pkgname}.install
+license=("custom: SIL")
+sha256sums=('SKIP')
+
+package() {
+ install -d "${pkgdir}/usr/share/fonts/OTF"
+ install -m644 "${srcdir}/"*.otf "${pkgdir}/usr/share/fonts/OTF/"
+}
diff --git a/noto-fonts-sc.install b/noto-fonts-sc.install
new file mode 100644
index 00000000000..477228553e8
--- /dev/null
+++ b/noto-fonts-sc.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs >/dev/null
+ mkfontscale /usr/share/fonts/OTF
+ mkfontdir /usr/share/fonts/OTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}