summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd1e6517afe5b5f4a5da08fd9935c45e165cf2ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: JJDaNiMoTh <jjdanimoth.aur@gmail.com>
# Contributor: zlowly <zlowly [at] archlinux.org>
# Contributor: bohoomil <@zoho.com>

pkgname=ttf-wqy-zenhei-ibx
_name=wqy-zenhei
pkgver=0.9.45
pkgrel=7
pkgdesc="A Hei Ti Style (sans-serif) Chinese Outline Font."
arch=('any')
license=(GPL2,custom:"font embedding exception")
url="http://wenq.org/enindex.cgi"
depends=('fontconfig')
groups=('infinality-bundle-fonts-extra')
conflicts=('wqy-zenhei')
provides=('wqy-zenhei')
replaces=('wqy-zenhei')
source=("http://downloads.sourceforge.net/project/wqy/${_name}/${pkgver}%20%28Fighting-state%20RC1%29/${_name}-${pkgver}.tar.gz"
        40-wqy-zenhei.conf
        43-wqy-zenhei-sharp.conf
        65-wqy-zenhei.conf
        90-tt-wqy-zenhei.conf)
md5sums=('4c6c3f4e902dd5ee0a121e8c41d040bd'
         '36d003e12c7ad99640db7723fe60f44e'
         '8c76b4572df0c41462f16c522580687c'
         '98cbaf37932c24282d2ba0f5222f83b4'
         'ffab9f8da7a9ab723395bcd6efde376f')

build() {
  cd "${_name}"

  grep README -e "GPL v2 license with font embedding exception" -A 12 >| FONTEXCEPTION
}

package() {
  cd "${_name}"

  install -D -m644 FONTEXCEPTION \
    "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING

  install -D -m644 "${_name}.ttc" "${pkgdir}/usr/share/fonts/${pkgname}/${_name}.ttc"

  cd "${srcdir}"
  install -D -m644 40-wqy-zenhei.conf \
    "${pkgdir}"/etc/fonts/conf.avail/40-wqy-zenhei.conf
  install -D -m644 43-wqy-zenhei-sharp.conf \
    "${pkgdir}"/etc/fonts/conf.avail/43-wqy-zenhei.conf
  install -D -m644 65-wqy-zenhei.conf \
    "${pkgdir}"/etc/fonts/conf.avail/65-wqy-zenhei.conf
  install -D -m644 90-tt-wqy-zenhei.conf \
    "${pkgdir}"/etc/fonts/conf.avail/90-tt-wqy-zenhei.conf

  install -m755 -d "${pkgdir}"/etc/fonts/conf.d
  cd "${pkgdir}"/etc/fonts/conf.d
  ln -s ../conf.avail/40-wqy-zenhei.conf .
  ln -s ../conf.avail/90-tt-wqy-zenhei.conf .
}