# Maintainer: Phillip Smith # http://github.com/fukawi2/aur-packages # Contributor: Matias Korhonen # Contributor: Dylon Edwards ### I AM ONLY THE PACKAGER, NOT THE DEVELOPER ### Please ask support questions about this software in one of: ### 1) The AUR comments; OR ### 2) Upstream forums/maillist etc; OR ### 3) The ArchLinux forums ### I do not always know enough about the software itself, or don't have the ### time to promptly respond to direct emails. ### If you have found a problem with the package/PKGBUILD (as opposed to ### the software) then please do email me or post an AUR comment. pkgname=backintime pkgver=1.0.22 _bzrrev=839 pkgrel=1 pkgdesc="Back In Time is a simple backup system for Linux inspired from the Flyback project and TimeVault." arch=('any') url="http://backintime.le-web.org/" license=('GPL') depends=( 'python2' 'rsync' 'cron' 'python2-gnomekeyring' 'python2-keyring' ) conflict=( 'backintime-bzr' 'backintime-kde4' ) source=("$pkgname-$pkgver.tar.gz::http://bazaar.launchpad.net/~bit-team/backintime/trunk/tarball/$_bzrrev") md5sums=('35845222d467035ed9192d9b934db469') GUI_ENFORCE=1 # set to 0 if you don't want a GUI at all # Build a custom array of depends based on what DE is installed _type= if [[ -e '/usr/lib/libkonq.so' ]] ; then # KDE is installed depends=( ${depends[@]} xorg-utils python2-pyqt kdebindings-python ) _type=( ${_type[@]} kde4 ) fi if [[ -n "$(which gnome-session 2> /dev/null)" ]] ; then # GNOME really depends=( ${depends[@]} pygtk python2-notify gnome-python meld gksu gnome-session ) _type=( ${_type[@]} gnome ) fi if [[ ${GUI_ENFORCE} == 1 && -z "${_type[@]}" ]] ; then # other DE like Xfce, Enlightenment etc. depends=( ${depends[@]} pygtk python2-notify gnome-python meld gksu ) _type=( ${_type[@]} gnome ) fi build() { cd ${srcdir}/~bit-team/$pkgname/trunk/ msg "Compiling COMMON components..." { cd ${srcdir}/~bit-team/$pkgname/trunk/common ./configure make } for t in ${_type[@]}; do msg "Building the "${t}" UI" { cd ${srcdir}/~bit-team/$pkgname/trunk/${t} ./configure --no-check make } done } package() { msg "Packaging COMMON components..." { cd ${srcdir}/~bit-team/$pkgname/trunk/common make DESTDIR=${pkgdir} install } for t in ${_type[@]}; do msg "Packaging the "${t}" UI" { cd ${srcdir}/~bit-team/$pkgname/trunk/${t} make DESTDIR=${pkgdir} install } done # Patch for python2 sed -e 's|^\(ssh-agent \)\?python |\1python2 |g' -i $pkgdir/usr/bin/* } # vim:set ts=2 sw=2 et: