[arch-commits] Commit in wqy-microhei-lite/repos (3 files)

Felix Yan fyan at nymeria.archlinux.org
Sat Sep 21 14:07:33 UTC 2013


    Date: Saturday, September 21, 2013 @ 16:07:32
  Author: fyan
Revision: 97486

archrelease: copy trunk to community-any

Added:
  wqy-microhei-lite/repos/community-any/
  wqy-microhei-lite/repos/community-any/PKGBUILD
    (from rev 97485, wqy-microhei-lite/trunk/PKGBUILD)
  wqy-microhei-lite/repos/community-any/wqy-microhei-lite.install
    (from rev 97485, wqy-microhei-lite/trunk/wqy-microhei-lite.install)

---------------------------+
 PKGBUILD                  |   24 ++++++++++++++++++++++++
 wqy-microhei-lite.install |   21 +++++++++++++++++++++
 2 files changed, 45 insertions(+)

Copied: wqy-microhei-lite/repos/community-any/PKGBUILD (from rev 97485, wqy-microhei-lite/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2013-09-21 14:07:32 UTC (rev 97486)
@@ -0,0 +1,24 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: zlowly <zlowly at gmail.com>
+
+pkgname=wqy-microhei-lite
+pkgver=0.2.0_beta
+pkgrel=6
+pkgdesc='The "Light" face of WenQuanYi Micro Hei font family'
+arch=('any')
+license=('GPL3' 'APACHE' 'custom:"font embedding exception"')
+install=${pkgname}.install
+url="http://wenq.org"
+depends=('fontconfig' 'xorg-font-utils')
+source=("https://sourceforge.net/projects/wqy/files/$pkgname/${pkgver//_/-}/$pkgname-${pkgver//_/-}.tar.gz")
+md5sums=('5b20c27e21ae4a838d3cbfe90ce1030f')
+
+package() {
+  cd "$srcdir/$pkgname"
+  tail README.txt --lines=16|head --lines=-3>| FONTEXCEPTION
+  install -d "$pkgdir/usr/share/fonts/wenquanyi/$pkgname/"
+  install -d "$pkgdir/usr/share/licenses/$pkgname/"
+  install -m644 *.ttc "$pkgdir"/usr/share/fonts/wenquanyi/$pkgname/
+  install -m644 -D FONTEXCEPTION "$pkgdir"/usr/share/licenses/$pkgname/FONTEXCEPTION
+}

Copied: wqy-microhei-lite/repos/community-any/wqy-microhei-lite.install (from rev 97485, wqy-microhei-lite/trunk/wqy-microhei-lite.install)
===================================================================
--- community-any/wqy-microhei-lite.install	                        (rev 0)
+++ community-any/wqy-microhei-lite.install	2013-09-21 14:07:32 UTC (rev 97486)
@@ -0,0 +1,21 @@
+post_install() {
+	echo -n "Updating font cache... "
+	mkfontscale /usr/share/fonts/wenquanyi/wqy-microhei-lite
+	mkfontdir /usr/share/fonts/wenquanyi/wqy-microhei-lite
+	fc-cache -f /usr/share/fonts/wenquanyi/wqy-microhei-lite > /dev/null
+	echo "done."
+}
+
+post_upgrade() {
+	post_install $1
+}
+
+post_remove() {
+	rm -r /usr/share/fonts/wenquanyi/wqy-microhei-lite
+	rmdir --ignore-fail-on-non-empty /usr/share/fonts/wenquanyi/
+}
+
+op=$1
+shift
+
+$op $*




More information about the arch-commits mailing list