Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD for qtserialport-git

By: a guest on Oct 18th, 2012  |  syntax: Bash  |  size: 0.83 KB  |  views: 48  |  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: Valeriy Lyasotskiy <onestep@ukr.net>
  2.  
  3. _gitname=qtserialport
  4. _gitroot='git://gitorious.org/qtplayground/qtserialport.git'
  5.  
  6. pkgname=qtserialport-git
  7. pkgver=20121018
  8. pkgrel=1
  9. pkgdesc="Add-on for the Qt library, providing a single interface for both hardware and virtual serial ports"
  10. arch=('i686' 'x86_64')
  11. url="http://qt-project.org/wiki/QtSerialPort"
  12. license=('LGPL')
  13. depends=('qt')
  14. makedepends=('git')
  15. provides=('qtserialport')
  16.  
  17. build() {
  18.   cd "$srcdir"
  19.   git clone --depth=1 ${_gitroot}
  20.  
  21.   sed -i 's/ examples tests//' ${_gitname}/serialport.pro
  22.  
  23.   mkdir "$srcdir"/qtserialport-build && cd "$srcdir"/qtserialport-build
  24.   qmake ../qtserialport/serialport.pro
  25.   make
  26. }
  27.  
  28. package() {
  29.   cd "$srcdir"/qtserialport-build
  30.   make INSTALL_ROOT="$pkgdir" install
  31.  
  32.   sed -i '1,1d' "$pkgdir"/usr/lib/libSerialPort.prl
  33. }