Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

qtserialport PKGBUILD

By: greizgh on Mar 4th, 2013  |  syntax: Bash  |  size: 1.06 KB  |  hits: 46  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: aleksonik <imsnet@yandex.ru>
  2. # Contributor: andre.vmatos <amdre.vmatos@gmail.com>
  3. # Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
  4. # Contributor: gleb.zhulik <gleb.zhulik@bk.ru>
  5. # Contributor: Greizgh <greizgh@gmail.com>
  6.  
  7. _gitname=qtserialport
  8. _gitroot='git://gitorious.org/qt/qtserialport.git'
  9.  
  10. pkgname=qtserialport-git
  11. pkgver=20130304
  12. pkgrel=1
  13. pkgdesc="Add-on for the Qt library, providing a single interface for both hardware and virtual serial ports"
  14. arch=('i686' 'x86_64')
  15. url="http://qt-project.org/wiki/QtSerialPort"
  16. license=('GPL')
  17. depends=('qt5-base')
  18. makedepends=('git')
  19. provides=('qtserialport')
  20.  
  21. build() {
  22. cd "$srcdir"
  23.  
  24. msg "Connecting to GIT server...."
  25.  
  26. if [[ -d "${_gitname}" ]]; then
  27. cd "${_gitname}" && git pull origin
  28. msg "The local files are updated."
  29. else
  30. git clone --depth=1 "${_gitroot}" "${_gitname}" && cd "${_gitname}"
  31. msg "GIT checkout done or server timeout"
  32. fi
  33.  
  34. pwd
  35.  
  36. sed -i 's/ examples tests//' qtserialport.pro
  37.  
  38. qmake
  39. make
  40. }
  41.  
  42. package() {
  43. cd "${_gitname}"
  44. make INSTALL_ROOT="$pkgdir" install
  45. }