desktop/backintime/PKGBUILD
2017-07-31 14:24:35 +01:00

44 lines
1.4 KiB
Bash

pkgname=backintime
pkgver=1.1.20
pkgrel=2
pkgdesc="A simple backup system for Linux inspired from 'flyback project' and 'TimeVault'."
arch=('x86_64')
url="https://github.com/bit-team/backintime"
license="GPL"
depends=('rsync' 'cron' 'openssh' 'xorg-utils' 'icu' 'polkit' 'libnotify' 'python3' 'python3-pyqt4' 'python3-dbus' 'python3-keyring')
optdepends=('kompare: diff/patch frontend')
categories=('utils' 'backup')
provides=('backintime-kde')
conflicts=('backintime-kde')
replaces=('backintime-kde')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bit-team/backintime/archive/v$pkgver.tar.gz"
"${pkgname}.png")
sha256sums=('51b020773864781d707283c2b0dbc6ba68cdecb9b9a52ce9296843c36dd21c2c'
'984fd92d327d5939151cada4496e9fdff0d7b0a34e4e8653b43fa2350e9bdeea')
build() {
cd "${srcdir}/${pkgname}-${pkgver}/common"
./configure --python3 --no-fuse-group
make
cd "${srcdir}/${pkgname}-${pkgver}/qt4"
./configure --python3
make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}/common"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/${pkgname}-${pkgver}/qt4"
make DESTDIR="${pkgdir}" install
install -D ../../${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
sed -i s!"Icon=document-save"!"Icon=backintime"! \
${pkgdir}/usr/share/applications/${pkgname}-qt4-root.desktop
sed -i s!"Icon=document-save"!"Icon=backintime"! \
${pkgdir}/usr/share/applications/${pkgname}-qt4.desktop
}