desktop/backintime-kde/PKGBUILD
2013-05-13 22:21:18 +02:00

56 lines
1.4 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor (x86_64): AlmAck <gluca86[at]google[dot]com>
pkgname=backintime-kde
pkgver=1.0.24
_bzrversion=863
pkgrel=1
pkgdesc="Back In Time is a simple backup system for Linux inspired from 'flyback project' and 'TimeVault'. KDE 4 version"
arch=('x86_64')
url="https://launchpad.net/backintime"
license="GPL"
depends=('rsync' 'cron' 'python' 'xorg-utils' 'pyqt' 'kdebindings-python')
makedepends=('bzr')
categories=('utils' 'backup')
_bzrbranch=lp:backintime
_bzrmod=trunk
build() {
msg "Connecting to the server...."
cd ${srcdir}
if [[ -d "$_bzrmod" ]]; then
cd "$_bzrmod" && bzr pull "$_bzrbranch" -r "$_bzrversion"
msg "The local files are updated."
else
#bzr branch "$_bzrbranch" -q -r "$_bzrversion"
bzr branch ${_bzrbranch} ${_bzrmod} -q -r ${_bzrversion}
fi
msg "BZR checkout done or server timeout"
msg "Starting make..."
cd $srcdir/$_bzrmod/common
./configure
make || return 1
cd $srcdir/$_bzrmod/kde4
./configure
make || return 1
}
package(){
cd $srcdir/$_bzrmod/common
make DESTDIR=${pkgdir} install || return 1
sed -i -e 's/python/python2/g' ${pkgdir}/usr/bin/backintime
cd $srcdir/$_bzrmod/kde4
make DESTDIR=${pkgdir} install || return 1
sed -i -e 's/python/python2/g' ${pkgdir}/usr/bin/backintime-kde4
}