summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 179650a283f29e73c05357347e9380693b6f1fe9 (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
# Maintainer: Ma Jiehong <email at majiehong.com>
pkgname=ttf-tw
epoch=1
pkgver=20201114
pkgrel=1
pkgdesc="Set of KAI and SONG fonts from the Ministry of Education of Taiwan. These fonts follow all the official recommendations and their shapes are calligraphically correct. (TTF/UTF-8)"
arch=('any')
url="http://www.moe.gov.tw/"
license=('CC-BY-ND 3.0')
depends=()
makedepends=('git')
conflicts=()
source=(git+https://github.com/Jiehong/TW-fonts.git)
sha512sums=('SKIP')

pkgver()
{
  cd "$srcdir/TW-fonts"
  git show --no-patch --date=short --format=format:%cd | tr -d -
}

package()
{
  cd "$srcdir"
  install -Dm644 TW-fonts/edukai-4.0.ttf "$pkgdir/usr/share/fonts/TTF/edukai-4.0.ttf"
  install -Dm644 TW-fonts/eduSong_Unicode.ttf "$pkgdir/usr/share/fonts/TTF/eduSong_Unicode.ttf"
}