summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b522678b7950258b96d039043903bc2740960af1 (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
# Maintainer: Norbert Preining <norbert@preining.info>
_UpstreamPkgName=RIT-Rachana
pkgname=${_UpstreamPkgName,,}-fonts
pkgver=1.5.1
pkgrel=1
pkgdesc="Traditional orthography opentype font with definitive character set for Malayalam"
url="https://gitlab.com/rit-fonts/${_UpstreamPkgName}"
arch=(any)
license=(custom:SIL)
makedepends=(fontforge git python python-fonttools python-cffsubr)
source=("${url}/-/archive/${pkgver}/${_UpstreamPkgName}-${pkgver}.tar.bz2")
sha256sums=('5502d07186de3225a7ba6bd548a6ca8a615cf70dbf61930cf13068b2b7c067bd')

build() {
  make -C ${_UpstreamPkgName}-${pkgver} otf
}

package() {
  cd "${srcdir}/${_UpstreamPkgName}-${pkgver}"
  install -Dm 644 -t "${pkgdir}/usr/share/fonts/${_UpstreamPkgName}" fonts/otf/*.otf
  install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt
  install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md CHANGELOG.md
  install -Dm 644 -t "${pkgdir}/usr/share/fontconfig/conf.avail" meta/65-0-rit-rachana-fonts.conf
  install -d "$pkgdir/usr/share/fontconfig/conf.default"
  ln -s ../conf.avail/65-0-rit-rachana-fonts.conf "$pkgdir/usr/share/fontconfig/conf.default/65-0-rit-rachana-fonts.conf"
}

# vim:set sw=2 et: