Guest User

photofilmstrip 2.0.0 pkgbuild

a guest
Dec 8th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. # Maintainer: Dan Serban
  2. # Contributor: Alexandre Courbot
  3.  
  4. pkgname=photofilmstrip
  5. pkgver=2.0.0
  6. pkgrel=1
  7. pkgdesc="Creates movies out of pictures using a Ken Burns effect"
  8. arch=(any)
  9. url=http://www.photofilmstrip.org/
  10. license=(GPL)
  11. depends=(mencoder python-imaging wxpython)
  12. source=("http://downloads.sourceforge.net/project/photostoryx/photofilmstrip/${pkgver}-RC1/photofilmstrip-${pkgver}.tar.gz")
  13. md5sums=('0d5025264cdbfdfcfd81071913b02f8c')
  14.  
  15. build()
  16. {
  17. cd photofilmstrip-${pkgver}
  18.  
  19. sed -i 's/import Image/from PIL import Image/g' photofilmstrip/core/PILBackend.py
  20. sed -i 's/import Image/from PIL import Image/g' photofilmstrip/core/__init__.py
  21.  
  22. python2 setup.py build
  23. }
  24.  
  25. package() {
  26. cd photofilmstrip-${pkgver}
  27. python2 setup.py install --prefix=/usr --root="${pkgdir}"
  28.  
  29.  
  30.  
  31. sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  32. -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  33. -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
  34. $(find ${pkgdir} -name '*.py')
  35.  
  36. chmod 755 "${pkgdir}"/usr/bin/*
  37. }
Advertisement
Add Comment
Please, Sign In to add comment