PKGBUILDs/extra/figlet/PKGBUILD
2009-10-09 21:23:22 -05:00

26 lines
942 B
Bash

# $Id: PKGBUILD 32965 2009-04-03 07:27:07Z eric $
# Maintainer: eric <eric@archlinux.org>
# Contributor: orelien <orelien@chez.com>
pkgname=figlet
pkgver=2.2.2
pkgrel=2
pkgdesc="FIGlet is a program for making large letters out of ordinary text"
arch=('i686' 'x86_64')
url="http://www.figlet.org/"
license=('custom:Academic')
depends=('glibc')
source=(ftp://ftp.figlet.org/pub/figlet/program/unix/$pkgname${pkgver//./}.tar.gz)
md5sums=('5f84ad52d092d5db4ad5916df767646b')
build() {
cd $srcdir/$pkgname${pkgver//./}
make DEFAULTFONTDIR=/usr/share/figlet/fonts all || return 1
install -d $pkgdir/usr/{bin,share/man/man6,share/figlet/fonts} || return 1
make install \
DESTDIR=$pkgdir/usr/bin \
MANDIR=$pkgdir/usr/share/man/man6 \
DEFAULTFONTDIR=$pkgdir/usr/share/figlet/fonts || return 1
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1
chmod 755 $pkgdir/usr/bin/{figlist,showfigfonts}
}