Date: Saturday, September 21, 2013 @ 16:04:47 Author: fyan Revision: 97485
addpkg: wqy-microhei-lite 0.2.0_beta-6 Added: wqy-microhei-lite/ wqy-microhei-lite/repos/ wqy-microhei-lite/trunk/ wqy-microhei-lite/trunk/PKGBUILD wqy-microhei-lite/trunk/wqy-microhei-lite.install ---------------------------+ PKGBUILD | 24 ++++++++++++++++++++++++ wqy-microhei-lite.install | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) Added: wqy-microhei-lite/trunk/PKGBUILD =================================================================== --- wqy-microhei-lite/trunk/PKGBUILD (rev 0) +++ wqy-microhei-lite/trunk/PKGBUILD 2013-09-21 14:04:47 UTC (rev 97485) @@ -0,0 +1,24 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: zlowly <[email protected]> + +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 +} Property changes on: wqy-microhei-lite/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: wqy-microhei-lite/trunk/wqy-microhei-lite.install =================================================================== --- wqy-microhei-lite/trunk/wqy-microhei-lite.install (rev 0) +++ wqy-microhei-lite/trunk/wqy-microhei-lite.install 2013-09-21 14:04:47 UTC (rev 97485) @@ -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 $*
