1 # Contributor: Kyle Keen <keenerd@gmail.com>
6 pkgdesc="A GUI based lossless image compressor."
7 url="http://trimage.org"
10 depends=("python2-pyqt" "optipng" "advancecomp" "jpegoptim" "pngcrush")
16 _gitroot="git://github.com/Kilian/Trimage.git"
21 msg "Connecting to github..."
23 if [ -d "$srcdir"/${_gitname} ] ; then
24 cd ${_gitname} && git pull origin
25 msg "The local files are updated."
27 git clone --depth 1 ${_gitroot}
30 msg "GIT checkout done or server timeout"
31 msg "Running setup.py..."
33 cd "$srcdir/$_gitname"
35 find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/env python|/usr/bin/env python2|'
36 sed -i 's|/usr/bin/env python|/usr/bin/env python2|' trimage
38 python2 setup.py build
42 cd "$srcdir/$_gitname"
43 python2 setup.py install --prefix=/usr --root="$pkgdir"