updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-toonloop / PKGBUILD
blob76941f14f819e07939046c2399c76d4cf0e8c095
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkgbasename=toonloop
4 pkgname=python-$_pkgbasename
5 pkgver=1.2.8
6 pkgrel=2
7 pkgdesc="Toonloop is a live stop motion animation software. Python version"
8 arch=('any')
9 url="http://toonloop.com/"
10 license=('GPL')
11 depends=('python2' 'pygtk' 'twisted' 
12          'python-opengl' 'python-numeric'
13          'python-pygame' 'pyliblo'
14          'pyopenssl' 'python2-numpy'
15          'hicolor-icon-theme')
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')
21 build() {
22   cd "$srcdir/${_pkgbasename}1"
24   # Python2 fixes
25   sed \
26         -e "s_env python_&2_" \
27         -e "s_bin/python_&2_" \
28         -i `grep -rlE "(env python|bin/python)" .`
30   # Build
31   python2 setup.py install --prefix=/usr --root="$pkgdir"
33   # Install
34   sed \
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"
48   # Man file
49   gzip -9 $_pkgbasename.1 && install -Dm644 $_pkgbasename.1.gz "$pkgdir/usr/share/man/man1/$pkgname.1.gz"