summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMa Jiehong2015-06-09 22:27:42 +0200
committerMa Jiehong2015-06-09 22:27:42 +0200
commit71de74a9443c1373fb38138b3e7980b47b699b08 (patch)
tree5104ae5be4db6a515fe31a8f1cb0f290e9c11157
downloadaur-71de74a9443c1373fb38138b3e7980b47b699b08.tar.gz
Import cwtex-q-fonts to AUR 4 (and add ttf to its name)
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD26
-rw-r--r--ttf.install15
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..5bcaccffeb08
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by makepkg 4.2.1
+# Tue Jun 9 20:27:11 UTC 2015
+pkgbase = ttf-cwtex-q-fonts
+ pkgdesc = Set of five Chinese truetype fonts derived from cwTeX
+ pkgver = 0.4
+ pkgrel = 2
+ url = https://github.com/l10n-tw/cwtex-q-fonts
+ install = ttf.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = https://github.com/l10n-tw/cwtex-q-fonts-TTFs/archive/v0.4.tar.gz
+ sha512sums = 02286502bf060a53ac925ab1b7ef52cbdc5f5bd83fab045a18a774656804082fd2cf95b93318efdfb9596110adc4c6d24fec3bbdd1446c8582172d9b26ba6646
+
+pkgname = ttf-cwtex-q-fonts
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..4dae130d32ce
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Ma Jiehong <majiehong.com/pages/contact.html>
+pkgname=ttf-cwtex-q-fonts
+pkgver=0.4
+pkgrel=2
+pkgdesc="Set of five Chinese truetype fonts derived from cwTeX"
+arch=('i686' 'x86_64')
+url="https://github.com/l10n-tw/cwtex-q-fonts"
+license=('GPL2')
+depends=('fontconfig' 'xorg-font-utils')
+conflicts=()
+install=ttf.install
+source=("https://github.com/l10n-tw/cwtex-q-fonts-TTFs/archive/v$pkgver.tar.gz")
+sha512sums=('02286502bf060a53ac925ab1b7ef52cbdc5f5bd83fab045a18a774656804082fd2cf95b93318efdfb9596110adc4c6d24fec3bbdd1446c8582172d9b26ba6646')
+
+build() {
+ echo
+}
+
+package() {
+ cd "$srcdir/cwtex-q-fonts-TTFs-$pkgver/ttf"
+ install -Dm644 cwTeXQFangsong-Medium.ttf "$pkgdir/usr/share/fonts/cwttf/cwTeXQFangsong-Medium.ttf"
+ install -Dm644 cwTeXQHei-Bold.ttf "$pkgdir/usr/share/fonts/cwttf/cwTeXQHei-Bold.ttf"
+ install -Dm644 cwTeXQKai-Medium.ttf "$pkgdir/usr/share/fonts/cwttf/cwTeXQKai-Medium.ttf"
+ install -Dm644 cwTeXQMing-Medium.ttf "$pkgdir/usr/share/fonts/cwttf/cwTeXQMing-Medium.ttf"
+ install -Dm644 cwTeXQYuan-Medium.ttf "$pkgdir/usr/share/fonts/cwttf/cwTeXQYuan-Medium.ttf"
+}
diff --git a/ttf.install b/ttf.install
new file mode 100644
index 000000000000..33b7d65490db
--- /dev/null
+++ b/ttf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "==> Rebuilding font cache... "
+ fc-cache -f &> /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}