summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68c42f9f61ecb96b8c26c15159aa3b91cdd7239d (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
# $Id$
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>

pkgname=borna-fonts
pkgver=20011225
pkgrel=2
pkgdesc="Borna Rayaneh Co. Persian B font series."
url="http://www.bornaray.com/products/font.html"
arch=(any)
license=(unknown)
depends=('fontconfig')
provides=('ttf-borna' "$pkgname")
conflicts=('ttf-borna' "$pkgname")
replaces=('ttf-borna')
source=("$pkgname.zip::http://www.bornaray.com/downloads/bfonts.zip")
sha256sums=('f9d7dcabe3378b82d7d32ae5b4f41b90dc9f72a572604ee59b4ebde54851379a')

prepare() {
  cd BFonts
  for i in $(find . -type f -name "*[A-Z]*"); 
  do mv "$i" "$(echo $i | tr A-Z a-z)"; 
  done
}

package() {
  install -d "$pkgdir/usr/share/fonts/${pkgname%-fonts}"
  install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 BFonts/*.ttf
}

# vim:set ts=2 sw=2 et: