Permalink
Browse files

backintime; incorporate suggestions from k0Do

The configure script for the gnome GUI does not work for --no-check, meaning
gnome-session is always enforced. Not good for Xfce, Enlightenment etc.

Here my proposal for the PKGBUILd part:

GUI_ENFORCE=1 # set to 0 if you don't want a GUI at all
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 python-notify gnome-python meld gksu gnome-session )
  _type=( ${_type[@]} gnome )
fi
if [ ${GUI_ENFORCE} == 1 -a ${#_type[@]} == 0 ]; then
  # other DE like Xfce, Enlightenment etc.
  depends=( ${depends[@]} pygtk python-notify gnome-python meld gksu )
  _type=( ${_type[@]} gnome )
fi

Replace the line "./configure" with "cp Makefile.template Makefile" as a work
around for the gnome section. The check for gnome-session is useless here.
http://bazaar.launchpad.net/~bit-team/backintime/trunk/view/head:/gnome/configure
  • Loading branch information...
1 parent f0a404e commit ea3eff8cc32724bd295ffd21ca8c6467cf56c80e @fukawi2 committed Aug 29, 2012
Showing with 13 additions and 5 deletions.
  1. +13 −5 backintime/PKGBUILD
View
@@ -15,7 +15,7 @@
pkgname=backintime
pkgver=1.0.8
-pkgrel=3
+pkgrel=4
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/"
@@ -26,16 +26,24 @@ source=("http://backintime.le-web.org/download/${pkgname}/${pkgname}-${pkgver}_s
md5sums=('676c743cb64fdc646c290c62e45640ff'
'a1a1cc1aa10005eeb62f2a1aaa81345a')
+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
-if [ -e '/usr/lib/libkonq.so' ]; then
+if [[ -e '/usr/lib/libkonq.so' ]] ; then
# KDE is installed
- depends=( ${depends[@]} xorg-utils python2-pyqt kdebindings-python)
+ depends=( ${depends[@]} xorg-utils python2-pyqt kdebindings-python )
_type=( ${_type[@]} kde4 )
fi
-if [ -n "`which gnome-session 2> /dev/null`" -o ${#_type[@]} == 0 ]; then
+if [[ -n "$(which gnome-session 2> /dev/null)" ]] ; then
+ # GNOME really
depends=( ${depends[@]} pygtk python-notify gnome-python meld gksu gnome-session )
_type=( ${_type[@]} gnome )
fi
+if [[ ${GUI_ENFORCE} == 1 && ${#_type[@]} == 0 ]] ; then
+ # other DE like Xfce, Enlightenment etc.
+ depends=( ${depends[@]} pygtk python-notify gnome-python meld gksu )
+ _type=( ${_type[@]} gnome )
+fi
build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -52,7 +60,7 @@ build() {
msg "Building the "${t}" UI"
cd ${srcdir}/${pkgname}-${pkgver}/${t}
- ./configure
+ ./configure --no-check
make
done

0 comments on commit ea3eff8

Please sign in to comment.