# Maintainer: Yuzu Vita <g311571057 at gmail dot com>

pkgname=ttf-lxgw-zhenkai
pkgver=0.825
pkgrel=1
pkgdesc="An unprofessional open-source Chinese font derived from Fontworks' Klee One. 一款非专业的开源中文字体，基于 FONTWORKS 出品字体 Klee One 衍生。 "
url="https://github.com/lxgw/LxgwZhenKai"
license=("LicenseRef-OFL")
arch=(any)
source=(
"$url/releases/download/v$pkgver/LXGWZhenKaiGB-Regular.ttf"
"LICENSE::https://raw.githubusercontent.com/lxgw/LxgwZhenKai/main/OFL.txt"
)
sha256sums=('40876902a7ce25268ab710ad8fe6e2b63bc002aa4b68d22fd45fc1243726ced5'
            '71651b1dc30e0c8ab1768640db78e8139c86ca7af096d9b1d8c46eda67eeb524')

package(){
  install -d "$pkgdir/usr/share/fonts/TTF"
  install -d "$pkgdir/usr/share/licenses/${pkgname}"
  install -m644 LXGWZhenKaiGB-Regular.ttf "$pkgdir/usr/share/fonts/TTF/"
  install -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/"
}
