Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 10th, 2013  |  syntax: None  |  size: 2.69 KB  |  views: 54  |  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. # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
  2. # http://github.com/fukawi2/aur-packages
  3. # Contributor: Matias Korhonen <webadmin@draco-vulgaris.net>
  4. # Contributor: Dylon Edwards <deltaecho@archlinux.us>
  5.  
  6. ### I AM ONLY THE PACKAGER, NOT THE DEVELOPER
  7. ### Please ask support questions about this software in one of:
  8. ###   1) The AUR comments; OR
  9. ###   2) Upstream forums/maillist etc; OR
  10. ###   3) The ArchLinux forums
  11. ### I do not always know enough about the software itself, or don't have the
  12. ### time to promptly respond to direct emails.
  13. ### If you have found a problem with the package/PKGBUILD (as opposed to
  14. ### the software) then please do email me or post an AUR comment.
  15.  
  16. pkgname=backintime
  17. pkgver=1.0.22
  18. _bzrrev=839
  19. pkgrel=1
  20. pkgdesc="Back In Time is a simple backup system for Linux inspired from the Flyback project and TimeVault."
  21. arch=('any')
  22. url="http://backintime.le-web.org/"
  23. license=('GPL')
  24. depends=( 'python2' 'rsync' 'cron' 'python2-gnomekeyring' 'python2-keyring' )
  25. conflict=( 'backintime-bzr' 'backintime-kde4' )
  26. source=("$pkgname-$pkgver.tar.gz::http://bazaar.launchpad.net/~bit-team/backintime/trunk/tarball/$_bzrrev")
  27. md5sums=('35845222d467035ed9192d9b934db469')
  28.  
  29. GUI_ENFORCE=1 # set to 0 if you don't want a GUI at all
  30.  
  31. # Build a custom array of depends based on what DE is installed
  32. _type=
  33. if [[ -e '/usr/lib/libkonq.so' ]] ; then
  34.   # KDE is installed
  35.   depends=( ${depends[@]} xorg-utils python2-pyqt kdebindings-python )
  36.   _type=( ${_type[@]} kde4 )
  37. fi
  38. if [[ -n "$(which gnome-session 2> /dev/null)" ]] ; then
  39.   # GNOME really
  40.   depends=( ${depends[@]} pygtk python2-notify gnome-python meld gksu gnome-session )
  41.   _type=( ${_type[@]} gnome )
  42. fi
  43. if [[ ${GUI_ENFORCE} == 1 && -z "${_type[@]}" ]] ; then
  44.   # other DE like Xfce, Enlightenment etc.
  45.   depends=( ${depends[@]} pygtk python2-notify gnome-python meld gksu )
  46.   _type=( ${_type[@]} gnome )
  47. fi
  48.  
  49. build() {
  50.   cd ${srcdir}/~bit-team/$pkgname/trunk/
  51.  
  52.   msg "Compiling COMMON components..."
  53.   {
  54.     cd ${srcdir}/~bit-team/$pkgname/trunk/common
  55.     ./configure
  56.     make
  57.   }
  58.  
  59.   for t in ${_type[@]}; do
  60.     msg "Building the "${t}" UI"
  61.     {
  62.       cd ${srcdir}/~bit-team/$pkgname/trunk/${t}
  63.       ./configure --no-check
  64.       make
  65.     }
  66.   done
  67. }
  68.  
  69. package() {
  70.   msg "Packaging COMMON components..."
  71.   {
  72.     cd ${srcdir}/~bit-team/$pkgname/trunk/common
  73.     make DESTDIR=${pkgdir} install
  74.   }
  75.  
  76.   for t in ${_type[@]}; do
  77.     msg "Packaging the "${t}" UI"
  78.     {
  79.       cd ${srcdir}/~bit-team/$pkgname/trunk/${t}
  80.       make DESTDIR=${pkgdir} install
  81.     }
  82.   done
  83.  
  84.   # Patch for python2
  85.   sed -e 's|^\(ssh-agent \)\?python |\1python2 |g' -i $pkgdir/usr/bin/*
  86. }
  87.  
  88. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data