updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / font-5x13 / PKGBUILD
blob26ec80cd98c1442215c09cbb2372eb0b9787f195
1 # Maintainer: Christian Neukirchen <chneukirchen@gmail.com>
2 pkgname=font-5x13
3 pkgver=20110415
4 pkgrel=1
5 pkgdesc="a condensed pixel font built on 6x13 ('fixed')"
6 arch=(any)
7 url="https://github.com/chneukirchen/5x13"
8 license=('public domain')
9 depends=('xorg-mkfontdir' 'xorg-mkfontscale' 'fontconfig')
10 makedepends=('git' 'xorg-bdftopcf')
11 install=font-5x13.install
12 source=()
13 noextract=()
14 md5sums=() #generate with 'makepkg -g'
16 _gitroot="git://github.com/chneukirchen/5x13.git"
17 _gitname="5x13"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   #
35   # BUILD HERE
36   #
38   bdftopcf 5x13.bdf |gzip >5x13.pcf.gz
41 package() {
42   cd "$srcdir/$_gitname-build"
43   install -D -m644 5x13.pcf.gz $pkgdir/usr/share/fonts/misc/5x13.pcf.gz
44