Guest User

slowmovideo-git PKGBUILD

a guest
Feb 13th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. # Maintainer: ZKenJ <[email protected]>
  2. # Contributor: Cilyan
  3. # Contributor: Dan Serban
  4.  
  5. pkgname=slowmovideo-git
  6. pkgver=20150206
  7. pkgrel=1
  8. pkgdesc="Video slow motion effect via interpolation"
  9. arch=('i686' 'x86_64')
  10. url="http://slowmovideo.granjow.net/index.html"
  11. license=('GPL')
  12. depends=('ffmpeg' 'freeglut' 'glew' 'libjpeg-turbo' 'libpng' 'opencv' 'qt4' 'sdl')
  13. makedepends=('cmake' 'git')
  14. provides=('slowmovideo')
  15. conflicts=('slowmovideo')
  16. source=('git+https://github.com/slowmoVideo/slowmoVideo.git')
  17. md5sums=('SKIP')
  18.  
  19. pkgver() {
  20. cd "${srcdir}"/slowmoVideo
  21. git log -1 --format='%cd' --date=short | tr -d -- '-'
  22. }
  23.  
  24. build() {
  25. cd "${srcdir}/slowmoVideo"
  26. # Fix cmake install error
  27. sed -i '/FIXUP_QT5_EXECUTABLE/ s/${executable}/bin\/${executable}/' src/cmake/DeployQt5.cmake
  28. sed -i '/install_qt_executable(slowmoUI/ s/${PLUGINS}"/" ""/' src/slowmoVideo/slowmoUI/CMakeLists.txt
  29. sed -i '/install(TARGETS/ s/DESTINATION "."/BUNDLE DESTINATION . COMPONENT Runtime\n RUNTIME DESTINATION ${DEST} COMPONENT Runtime/' src/slowmoVideo/slowmoUI/CMakeLists.txt
  30.  
  31. rm -r build
  32. mkdir build && cd build
  33. # disable old test and use of qtkit
  34. cmake -DUSE_QTKIT=FALSE -DENABLE_TESTS=FALSE -DCMAKE_INSTALL_PREFIX=/usr ../src
  35. make
  36. }
  37.  
  38. package() {
  39. cd "${srcdir}/slowmoVideo/build"
  40. make DESTDIR="${pkgdir}" install
  41. }
Advertisement
Add Comment
Please, Sign In to add comment