csync-git
[mirrors/ArchLinux-Packages.git] / figlet-fonts / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
4
5 pkgname=figlet-fonts
6 pkgver=1.0
7 pkgrel=2
8 pkgdesc="Additional asciiart fonts for figlet"
9 arch=('any')
10 license=('GPL')
11 url="http://www.figlet.org/fontdb.cgi"
12 depends=(figlet)
13 optdepends=('jave: create cool ascii-art and figlets')
14 source=(
15 ftp://ftp.figlet.org/pub/figlet/fonts/ours.tar.gz
16 ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz
17 ftp://ftp.figlet.org/pub/figlet/fonts/international.tar.gz
18 ftp://ftp.figlet.org/pub/figlet/fonts/ms-dos.tar.gz)
19 md5sums=('ecfc312b626df0d04936200d074d2508'
20 '6e2dec4499f7a7fe178522e02e0b6cd1'
21 'b2d53f7e251014adcdb4d407c47f90ef'
22 '49aa57ab989e8d952be037414b0bbbe4')
23 build() {
24 msg 'Copying figlet fonts...'
25 mkdir -p ${pkgdir}/usr/share/figlet/fonts/
26 find ${srcdir} | grep -i flf$ | while read font; do
27 msg2 "${font##*/}";
28 cp -f "$font" ${pkgdir}/usr/share/figlet/fonts/
29 done;
30
31 msg 'Removing figlets which are already in official distribution...'
32 ls -1 ${srcdir}/ours/ | while read i; do
33 rm -rf "$pkgdir/usr/share/figlet/fonts/$i";
34 done;
35
36 msg 'Installing figlet-gallery script...'
37 mkdir -p ${pkgdir}/usr/bin/
38 echo '#!/bin/sh
39 ls /usr/share/figlet/fonts/*.flf | cut -d . -f 1 | while read i; do echo "$i.flf:"; figlet -t -f "$i" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890; done | less
40 ' > ${pkgdir}/usr/bin/figlet-gallery
41
42 chmod -R 755 ${pkgdir}/
43 }
This page took 0.250391 seconds and 4 git commands to generate.