updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / contextfree / PKGBUILD
blobbc23a38d4ed45b6f083ce7382b74401aac6cd043
1 # Maintainer: Hilton Medeiros <medeiros.hilton at gmail tod com>
2 # Contributor: Tony Dodd <arch@recalcitrance.net>
3 # Contributor: Mark Taylor <skymt0@gmail.com>
5 pkgname=contextfree
6 pkgver=2.2.2
7 pkgrel=2
8 pkgdesc="A program that generates images from written instructions called a grammar"
9 arch=('i686' 'x86_64')
10 url="http://www.contextfreeart.org/"
11 license=('GPL2')
12 depends=('libpng' 'gcc-libs')
13 source=("http://www.contextfreeart.org/download/ContextFreeSource${pkgver}.tgz")
14 md5sums=('df05c3ea98201bbc75d30b317197ef2b')
16 build() {
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
20   make
23 package() {
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"