updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / cfdg / PKGBUILD
blobb9dd3d2780428055587c0509ffb73eeb6bdda33e
1 # Maintainer: epsy <epsy nospace 46 at free dot fr>
3 pkgname=cfdg
4 pkgver=2.2.2
5 pkgrel=1
6 pkgdesc="A command-line tool for rendering CFDG design grammars."
7 arch=(i686 x86_64)
8 url="http://www.contextfreeart.org/"
9 license=('GPL')
10 groups=('')
11 depends=('libpng')
12 source=(http://www.contextfreeart.org/download/ContextFreeSource$pkgver.tgz  http://epsy.net46.net/aur/cfdg-$pkgver-$pkgrel.patch)
13 md5sums=('df05c3ea98201bbc75d30b317197ef2b' 'e830f8e437b2959731db16bc72f79179')
15 # We extract the archive ourselves because for some bad reason,
16 # upstream named the top directory from the archive the same as
17 # the archive itself.
18 noextract=(ContextFreeSource$pkgver.tgz)
20 build() {
21   rm -R $srcdir/extract
22   mkdir $srcdir/extract
23   bsdtar -xf $srcdir/ContextFreeSource$pkgver.tgz -C $srcdir/extract/
24   cd $srcdir/extract/ContextFreeSource$pkgver.tgz
25   patch -p0 <$srcdir/cfdg-$pkgver-$pkgrel.patch
26   make || return 1
28   # The package has no install directive, so install it ourselves
29   mkdir -p $pkgdir/usr/bin/ $pkgdir/usr/share/cfdg
30   cp cfdg $pkgdir/usr/bin/cfdg
31   cp -R input $pkgdir/usr/share/cfdg/examples