summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab501a314bd57cb7d40ed876c7e058dc560cb47c (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
# Maintainer: Kyle Keen < keenerd at gmail >

pkgname=ttf-game-fonts
pkgver=20111126
pkgrel=3
pkgdesc='Some +200 fonts from classic video games.'
arch=('any')
license=('custom')
url='http://www.thealmightyguru.com/GameFonts/Index.html'
depends=('xorg-font-utils' 'fontconfig')
makedepends=('wget' 'unzip')
install=ttf-game-fonts.install
source=()
_download_source='http://www.thealmightyguru.com/GameFonts/GFD-FontList.html'
md5sums=()

build() {
  msg "Beginning dynamic build..."
  mkdir -p zips
  wget -r -l 1 -N -L -np -nd -nH -P "./zips" -A "Font*.zip" "$_download_source" || true
  #cp ../zips/*.zip zips/
}

package() {
  install -d "$pkgdir/usr/share/fonts/TTF/"
  install -d "$pkgdir/usr/share/licenses/$pkgname/"
  for z in zips/*.zip; do
    unzip -j "$z" '*.ttf' -d "$pkgdir/usr/share/fonts/TTF/" 2> /dev/null || true
    unzip -j "$z" '*.txt' '*.html' '*.doc' -d "$pkgdir/usr/share/licenses/$pkgname/" 2> /dev/null || true
  done
  chmod -R a+r "$pkgdir/usr/share/fonts/TTF/"
  chmod -R a+r "$pkgdir/usr/share/licenses/$pkgname/"
}