updated on Fri Jan 20 20:16:25 UTC 2012
[aur-mirror.git] / climage / PKGBUILD
blob6684b11fd4d56782ffbe5698fccc7e4016e730e9
1 # Contributor: mathieui <mathieui[at]mathieui.net>
2 pkgname=climage
3 pkgrel=3
4 pkgver=0.4
5 pkgdesc="Climage allows you to display an image with colors in a shell."
6 url="http://codingteam.net/project/climage"
7 arch=('any')
8 license=('GPL')
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')
14 build() {
15     cd $srcdir/${pkgname}-${pkgver}/
16     patch -p0 < $srcdir/python.patch
18 package() {
19     cd $srcdir
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