1 # Contributor: mathieui <mathieui[at]mathieui.net>
5 pkgdesc="Climage allows you to display an image with colors in a shell."
6 url="http://codingteam.net/project/climage"
9 depends=('python-imaging' 'bash')
10 source=("http://codingteam.net/project/${pkgname}/download/file/${pkgname}-$pkgver.tar.gz" "python.patch")
11 md5sums=('ecae9592106ad25ddedc3fee8a98883d'
12 '42a50d66e940e1b7dd96d975b065d039')
15 cd $srcdir/${pkgname}-${pkgver}/
16 patch -p0 < $srcdir/python.patch
20 mkdir -p $pkgdir/usr/share
21 mkdir -p $pkgdir/usr/bin
22 cp -R ${pkgname}-$pkgver $pkgdir/usr/share/$pkgname
23 echo -e '#!/bin/bash'"\nbash /usr/share/${pkgname}/${pkgname}.sh \$*" > $pkgdir/usr/bin/${pkgname}
24 chmod +x $pkgdir/usr/bin/${pkgname}
25 cp $pkgdir/usr/bin/$pkgname $pkgdir/usr/bin/img