Guest User

Untitled

a guest
Nov 9th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. # Maintainer: jhonnnyboy <[email protected]>
  2. pkgbase=freestroke
  3. pkgname=freestroke-git
  4. pkgver=0.0.0
  5. pkgrel=2
  6. pkgdesc="a motion-control software. Let you control your computer with body-gesture. As today the only supported capture device is MS kinect (require a windows computer on your network)"
  7. url='https://github.com/FreeStroke/FreeStroke.git'
  8. arch=('x86_64')
  9. license=('GPLv3')
  10. depends=('sqlite' 'glu' 'libgl' 'qt5-base' 'qt5-xmlpatterns' 'qt5-multimedia' 'qt5-graphicaleffects' 'qt5-imageformats')
  11. makedepends=('git')
  12. conflicts=()
  13. replaces=()
  14. backup=()
  15. source=('git://github.com/FreeStroke/FreeStroke.git')
  16. md5sums=('SKIP')
  17. pkgver() {
  18. cd local_repo
  19. echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  20. }
  21.  
  22. build() {
  23. cd "${_pkgname}/FreeStroke/project/linux/"
  24. qmake
  25. make -j3
  26. mv FreeStroke ../apps/installerLinux/
  27. cd ../apps/installerLinux/
  28. sed -i -e "s|Exec=/opt/FreeSoft/FreeStroke|Exec=FreeStroke|g" ${_pkgname}.desktop
  29. sed -i -e "s|Icon=/opt/FreeSoft/FreeStroke-icon|Icon=FreeStroke.png|g" ${_pkgname}.desktop
  30. }
  31.  
  32. package() {
  33. cd ${srcdir}/${_pkgname}/FreeStroke/project/apps/installerLinux/
  34. mkdir -p ${pkgdir}/usr/bin
  35. mkdir -p ${pkgdir}/usr/share/applications/
  36. mkdir -p ${pkgdir}/usr/share/pixmaps/
  37.  
  38. install -m 777 ${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
  39. install -m 644 ${_pkgname}.desktop ${pkgdir}/usr/share/applications/
  40. install -m 644 ${_pkgname}-icon ${pkgdir}/usr/share/pixmaps/${_pkgname}.png
  41. }
  42.  
  43. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment