Advertisement
Guest User

Untitled

a guest
Aug 25th, 2010
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. #Maintainer: bh <ang5t@gmx.net>
  2. #Contributor: lh <jarryson#gmail.com>
  3. pkgname=cairo-dock-bzr
  4. pkgver=651
  5. pkgrel=1
  6. pkgdesc="A cairo-based themeable dock app for a composited desktop"
  7. url="http://www.glx-dock.org/"
  8. license="GPL"
  9. arch=('i686' 'x86_64')
  10. depends=('librsvg' 'dbus' 'dbus-glib' 'gtkglext')
  11. makedepends=('bzr' 'intltool' 'perlxml' 'cmake')
  12. conflicts=('cairo-dock' 'cairo-dock-svn')
  13. provides=('cairo-dock')
  14.  
  15. _bzrmod=cairo-dock-core
  16. _bzrtrunk=lp:cairo-dock-core
  17.  
  18. build() {
  19. cd $srcdir
  20.  
  21. msg "Connecting to the server...."
  22.  
  23. if [ ! -d ./${_bzrmod} ]; then
  24. msg "Downloading the latest revision through a 'checkout --lightweight'...."
  25. bzr checkout --lightweight ${_bzrtrunk} -q -r ${pkgver}
  26. touch ${_bzrmod}/.bzr_checkout
  27. elif [ ! -f ./${_bzrmod}/.bzr_checkout ]; then
  28. msg "The branch of ${_bzrmod} will be moved to '${_bzrmod}_bak': you can remove it if you haven't added any modification...."
  29. mv ${_bzrmod} ${_bzrmod}_bak
  30. msg "Downloading the latest revision through a 'checkout --lightweight' and not a branch...."
  31. bzr checkout --lightweight ${_bzrtrunk} -q -r ${pkgver}
  32. touch ${_bzrmod}/.bzr_checkout
  33. else
  34. cd ${_bzrmod} && bzr up && cd ..
  35. fi
  36.  
  37. msg "bzr checkout done."
  38. msg "Removing old build directory..."
  39. rm -rf $srcdir/$_bzrmod-build
  40. msg "Creating build directory..."
  41. cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build
  42.  
  43. msg "Starting make..."
  44. cd $srcdir/$_bzrmod-build
  45.  
  46. cmake -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_NOT_LIB64=yes
  47.  
  48. make -j $(grep -c ^processor /proc/cpuinfo)
  49.  
  50. make install DESTDIR=$startdir/pkg || return 1
  51.  
  52. rm -rf $srcdir/$_bzrmod-build
  53. }
  54. package() {
  55. return 0
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement