aboutsummaryrefslogblamecommitdiffstats
path: root/main/figlet/APKBUILD
blob: 1e485815592a24fbb89dba94f100d1e5f0def703 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                                                              
            









                                                                 


                                                                                






















                                                                                  





                                                                                                                                                                 
# 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
	musl-fix-cplusplus-decls.patch
	"
_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
7944a8b5731da408cd791b9ed154f4d9  musl-fix-cplusplus-decls.patch"
sha256sums="bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d  figlet-2.2.5.tar.gz
f2d83fdeb0678c51b64385bcd3bf99d0da533bb559ae89ed9faaa6e9f2fb409c  musl-fix-cplusplus-decls.patch"
sha512sums="bb9610fd89a51dd3e65c485653fe1292f47dbca7cb9a05af4ce317f5d776bb346ae455aec07fc37c290f6658639920fd7c431c1135a0f4d456a21c0bd25f99fb  figlet-2.2.5.tar.gz
4ac1788686ff89c27747fe10b43de90f43c2aaa40476610cf5af52ff43c00e180b91acc1646658330fd534d223cef4643ab3c7f7bf0f6c9b5861601b1d8a05fe  musl-fix-cplusplus-decls.patch"