summaryrefslogtreecommitdiffstats
path: root/testing/figlet/APKBUILD
blob: 648c52d67096a4a827aac7b242f1a2a7ea243370 (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
35
36
37
38
39
40
41
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=figlet
pkgver=2.2.5
pkgrel=0
pkgdesc="A program for making large letters out of ordinary text"
url="http://www.figlet.org/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.figlet.org/pub/figlet/program/unix/${pkgname}-${pkgver}.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make DEFAULTFONTDIR=/usr/share/figlet/fonts all
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" BINDIR=/usr/bin MANDIR=/usr/share/man \
	    DEFAULTFONTDIR=/usr/share/figlet/fonts install 
        install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

md5sums="d88cb33a14f1469fff975d021ae2858e  figlet-2.2.5.tar.gz"
sha256sums="bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d  figlet-2.2.5.tar.gz"
sha512sums="bb9610fd89a51dd3e65c485653fe1292f47dbca7cb9a05af4ce317f5d776bb346ae455aec07fc37c290f6658639920fd7c431c1135a0f4d456a21c0bd25f99fb  figlet-2.2.5.tar.gz"