1 # Maintainer: Hilton Medeiros <medeiros.hilton at gmail tod com>
2 # Contributor: Tony Dodd <arch@recalcitrance.net>
3 # Contributor: Mark Taylor <skymt0@gmail.com>
8 pkgdesc="A program that generates images from written instructions called a grammar"
10 url="http://www.contextfreeart.org/"
12 depends=('libpng' 'gcc-libs')
13 source=("http://www.contextfreeart.org/download/ContextFreeSource${pkgver}.tgz")
14 md5sums=('df05c3ea98201bbc75d30b317197ef2b')
17 cd "$srcdir/ContextFreeSource$pkgver.tgz"
18 sed -i "s|size_t yyget_leng|int yyget_leng|" src-common/yglue.h
19 sed -i "s|-lz|-lz -lm|" Makefile
24 cd "$srcdir/ContextFreeSource$pkgver.tgz"
25 install -Dm755 cfdg "$pkgdir/usr/bin/cfdg"
26 install -d "$pkgdir/usr/share/$pkgname"
27 cp -r input "$pkgdir/usr/share/$pkgname/examples"