Advertisement
MasWag

qstlink2-svn-PKGBUILD

Apr 7th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. # Maintainer: Radu Andries <admiral0@tuxfamily.org>
  2. pkgname=qstlink2-svn
  3. pkgver=75
  4. pkgrel=1
  5. pkgdesc="A ST-Link V2 (Debugger/Programmer) client."
  6. arch=(i686 x86_64 arm)
  7. url="http://code.google.com/p/qstlink2/"
  8. license=('GPL')
  9. depends=('qt4' 'libusb')
  10. makedepends=('subversion')
  11.  
  12. _svntrunk=http://qstlink2.googlecode.com/svn/trunk/
  13. _svnmod=qstlink2
  14.  
  15. build() {
  16. cd "$srcdir"
  17. msg "Connecting to SVN server...."
  18.  
  19. if [[ -d "$_svnmod/.svn" ]]; then
  20. (cd "$_svnmod" && svn up -r "$pkgver")
  21. else
  22. svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  23. fi
  24.  
  25. msg "SVN checkout done or server timeout"
  26. msg "Starting build..."
  27.  
  28. rm -rf "$srcdir/$_svnmod-build"
  29. svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  30. cd "$srcdir/$_svnmod-build"
  31.  
  32. #
  33. # BUILD HERE
  34. #
  35. qmake-qt4
  36. make
  37. }
  38.  
  39. package() {
  40. cd "$srcdir/$_svnmod-build"
  41. make INSTALL_ROOT="$pkgdir/" install
  42. }
  43.  
  44. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement