PKGBUILDs/community/wqy-zenhei/PKGBUILD

28 lines
1.1 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
#$Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: JJDaNiMoTh <jjdanimoth.aur@gmail.com>
# Contributor: zlowly <zlowly [at] archlinux.org>
pkgname=wqy-zenhei
pkgver=0.8.38
pkgrel=1
pkgdesc="A Hei Ti Style (sans-serif) Chinese Outline Font."
arch=('i686' 'x86_64')
license=('GPL2' 'custom:"font embedding exception"')
install=wqy-zenhei.install
url="http://wenq.org"
depends=('fontconfig' 'xorg-font-utils')
source=(http://wenq.org/release/zenhei/wqy-zenhei-$pkgver-0.tar.gz)
md5sums=('ba15ed5434d040ab329366af96609f40')
build() {
cd $startdir/src/$pkgname
grep README -e "GPL v2.0 license with font embedding exception" -A 12 >| FONTEXCEPTION
mkdir -p $startdir/pkg/usr/share/fonts/wenquanyi/wqy-zenhei/
mkdir -p $startdir/pkg/etc/fonts/conf.avail/
mkdir -p $startdir/pkg/etc/fonts/conf.d
install -m644 -D FONTEXCEPTION ${startdir}/pkg/usr/share/licenses/${pkgname}/FONTEXCEPTION || return 1
install -m644 *.ttc $startdir/pkg/usr/share/fonts/wenquanyi/wqy-zenhei/ || return 1
install -m644 44-wqy-zenhei.conf $startdir/pkg/etc/fonts/conf.avail/ || return 1
cd $startdir/pkg/etc/fonts/conf.d/
ln -s ../conf.avail/44-wqy-zenhei.conf .
}