updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / slowmovideo-git / PKGBUILD
blobff1bd0466833529f70c4320365dc083fc0d7fcc1
1 # Maintainer: Dan Serban
3 pkgname=slowmovideo-git
4 pkgver=latest
5 pkgrel=1
6 pkgdesc="Slows down video playback"
7 arch=(i686 x86_64)
8 url=http://slowmovideo.granjow.net/index.html
9 license=(GPL)
10 depends=(ffmpeg freeglut glew nvidia-cg-toolkit opencv qt sdl)
11 makedepends=(cmake git)
13 build()
15   unset CXXFLAGS 
16   unset CFLAGS
17   git clone git://granjow.net/slowmoVideo.git
18   cd "${srcdir}"/slowmoVideo/slowmoVideo
19   mkdir build 
20   cd build
21   cmake ..
22   make -j3
23   make install
24   cd "${srcdir}"/slowmoVideo/V3D
25   mkdir build 
26   cd build
27   cmake ..
28   make -j3
29   make install
30   mkdir -p "${pkgdir}"/usr/share/slowmovideo
31   cd "${srcdir}"/slowmoVideo/install
32   mv bin include lib "${pkgdir}"/usr/share/slowmovideo/
33   mkdir -p "${pkgdir}"/usr/bin
34   USRBINFILE="${pkgdir}"/usr/bin/slowmovideo
35   echo '#!/bin/bash' > "${USRBINFILE}"
36   echo 'cd /usr/share/slowmovideo/bin' >> "${USRBINFILE}"
37   echo './slowmoUI' >> "${USRBINFILE}"
38   chmod +x "${USRBINFILE}"