1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
4 pkgname=python-$_pkgbasename
7 pkgdesc="Toonloop is a live stop motion animation software. Python version"
9 url="http://toonloop.com/"
11 depends=('python2' 'pygtk' 'twisted'
12 'python-opengl' 'python-numeric'
13 'python-pygame' 'pyliblo'
14 'pyopenssl' 'python2-numpy'
16 conflicts=('toonloop<=1.2.8')
17 install=("$pkgname.install")
18 source=(http://bitbucket.org/aalex/${_pkgbasename}1/get/$pkgver.tar.gz)
19 md5sums=('dfa63b6b79d04a05f15f36d4efacb4cf')
22 cd "$srcdir/${_pkgbasename}1"
26 -e "s_env python_&2_" \
27 -e "s_bin/python_&2_" \
28 -i `grep -rlE "(env python|bin/python)" .`
31 python2 setup.py install --prefix=/usr --root="$pkgdir"
35 -e "s:$_pkgbasename:$pkgname:g" \
36 -e "s:Toonloop:Python &:g" \
37 -i $_pkgbasename.desktop
39 mkdir -p "$pkgdir"/usr/share/{{doc,licenses}/"$pkgname",icons/hicolor/{48x48,scalable}/apps,man/man1/applications}
41 install -Dm 644 "$_pkgbasename.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
42 install -Dm 644 doc/* "$pkgdir/usr/share/doc/$pkgname"
43 install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
44 install -Dm 644 "$_pkgbasename.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
45 install -Dm 644 "$_pkgbasename.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
46 mv "$pkgdir/usr/bin/$_pkgbasename" "$pkgdir/usr/bin/$pkgname"
49 gzip -9 $_pkgbasename.1 && install -Dm644 $_pkgbasename.1.gz "$pkgdir/usr/share/man/man1/$pkgname.1.gz"