updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / aafigure / PKGBUILD
blob740739d2d3575826dfbb3480155da5436f6c0dd1
1 # Contributor: François Boulogne <fboulogne at april dot org>
2 pkgname=aafigure
3 pkgver=0.5
4 pkgrel=1
5 pkgdesc="ASCII art to image converter"
6 arch=('i686' 'x86_64')
7 url="http://launchpad.net/aafigure"
8 license=('custom-BSD')
9 depends=('python2' 'setuptools')
10 source=(http://pypi.python.org/packages/source/a/aafigure/aafigure-$pkgver.tar.gz LICENSE.txt aafigure.1)
12 build() {
13   cd $startdir/src
14   
15   install -D LICENSE.txt $startdir/pkg/usr/share/licenses/aafigure/COPYING
16   install -D aafigure.1 $startdir/pkg/usr/share/man/man1/aafigure.1
17   cd $startdir/src/aafigure-$pkgver
18   for file in $(find . -name '*.py' -print); do 
19         echo $file
20         sed -i 's#/usr/bin/env python#/usr/bin/env python2#' $file 
21   done  
22   python2 setup.py bdist_dumb || return 1
23   cd $startdir/pkg
24   tar xzvf $startdir/src/aafigure-$pkgver/dist/aafigure-$pkgver.linux*.tar.gz   
25   
28 md5sums=('5322888a21eb0bb2e749fbf98eddf574'
29          '2539d72a3354d9187f2c10acebf2e6dd'
30          '82c749c825d421de0abe21c4f50c671c')