updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / wqy-microhei / PKGBUILD
bloba1bcf31668092d8972009feeb0e4265ae1ac5468
1 # Maintainer: Philacorns <opuspace@gmail.com>
3 pkgname=wqy-microhei
4 pkgver=0.2.0_beta
5 pkgrel=2
6 pkgdesc="A Sans-Serif style high quality CJK outline font."
7 arch=('any')
8 license=('GPL3' 'APACHE' 'custom:"font embedding exception"')
9 install=wqy-microhei.install
10 url="http://wenq.org"
11 depends=('fontconfig' 'xorg-font-utils')
12 source=(http://downloads.sourceforge.net/project/wqy/$pkgname/${pkgver//_/-}/$pkgname-${pkgver//_/-}.tar.gz
13 '44-wqy-microhei.conf')
14 md5sums=('a124c5c6606f4f3b733d3477380e9d2f'
15          'ab808b1aeac032f505837bd3ab653c1e')
16 build() {
17   cd $srcdir/$pkgname
18   tail README.txt --lines=16|head --lines=-3>| FONTEXCEPTION
19   mkdir -p $pkgdir/usr/share/fonts/wenquanyi/$pkgname/
20   mkdir -p $pkgdir/usr/share/licenses/$pkgname/
21   mkdir -p $pkgdir/etc/fonts/conf.avail/
22   mkdir -p $pkgdir/etc/fonts/conf.d/
23   install -m644 $srcdir/*.conf $pkgdir/etc/fonts/conf.avail/ || return 1
24   install -m644 *.ttc $pkgdir/usr/share/fonts/wenquanyi/$pkgname/ || return 1
25   install -m644 -D FONTEXCEPTION $pkgdir/usr/share/licenses/$pkgname/FONTEXCEPTION || return 1
26   cd $pkgdir/etc/fonts/conf.d/
27   ln -s ../conf.avail/44-wqy-microhei.conf .