MegaHAL package added :-)
[mirrors/ArchLinux-Packages.git] / figlet-fonts / PKGBUILD
CommitLineData
209feeb0
H
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
5pkgname=figlet-fonts
6pkgver=1.0
ebb9ae05 7pkgrel=2
209feeb0
H
8pkgdesc="Additional asciiart fonts for figlet"
9arch=('any')
10license=('GPL')
11url="http://www.figlet.org/fontdb.cgi"
12depends=(figlet)
13optdepends=('jave: create cool ascii-art and figlets')
14source=(
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)
19md5sums=('ecfc312b626df0d04936200d074d2508'
20 '6e2dec4499f7a7fe178522e02e0b6cd1'
21 'b2d53f7e251014adcdb4d407c47f90ef'
22 '49aa57ab989e8d952be037414b0bbbe4')
23build() {
ebb9ae05 24 msg 'Copying figlet fonts...'
209feeb0 25 mkdir -p ${pkgdir}/usr/share/figlet/fonts/
ebb9ae05
H
26 find ${srcdir} | grep -i flf$ | while read font; do
27 msg2 "${font##*/}";
28 cp -f "$font" ${pkgdir}/usr/share/figlet/fonts/
29 done;
209feeb0 30
ebb9ae05 31 msg 'Removing figlets which are already in official distribution...'
209feeb0
H
32 ls -1 ${srcdir}/ours/ | while read i; do
33 rm -rf "$pkgdir/usr/share/figlet/fonts/$i";
34 done;
35
ebb9ae05 36 msg 'Installing figlet-gallery script...'
209feeb0
H
37 mkdir -p ${pkgdir}/usr/bin/
38 echo '#!/bin/sh
39ls /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.13544 seconds and 4 git commands to generate.