desktop/backintime/PKGBUILD

44 lines
1.4 KiB
Bash
Raw Normal View History

pkgname=backintime
2017-04-11 17:24:24 +08:00
pkgver=1.1.20
2015-07-08 05:57:17 +08:00
pkgrel=1
pkgdesc="A simple backup system for Linux inspired from 'flyback project' and 'TimeVault'."
arch=('x86_64')
2017-03-07 06:51:56 +08:00
url="https://github.com/bit-team/backintime"
license="GPL"
2017-03-07 06:51:56 +08:00
depends=('rsync' 'cron' 'openssh' 'xorg-utils' 'icu' 'polkit' 'libnotify' 'python3' 'python3-pyqt4' 'python3-dbus' 'python3-keyring')
optdepends=('kompare: diff/patch frontend')
categories=('utils' 'backup')
2015-03-20 17:53:23 +08:00
provides=('backintime-kde')
conflicts=('backintime-kde')
replaces=('backintime-kde')
2017-03-07 06:51:56 +08:00
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bit-team/backintime/archive/v$pkgver.tar.gz"
2015-07-08 05:57:17 +08:00
"${pkgname}.png")
2017-04-11 17:24:24 +08:00
sha256sums=('51b020773864781d707283c2b0dbc6ba68cdecb9b9a52ce9296843c36dd21c2c'
2017-03-07 06:51:56 +08:00
'984fd92d327d5939151cada4496e9fdff0d7b0a34e4e8653b43fa2350e9bdeea')
build() {
cd "${srcdir}/${pkgname}-${pkgver}/common"
2015-03-25 21:34:20 +08:00
./configure --python3 --no-fuse-group
make
cd "${srcdir}/${pkgname}-${pkgver}/qt4"
2015-03-25 21:34:20 +08:00
./configure --python3
make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}/common"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/${pkgname}-${pkgver}/qt4"
make DESTDIR="${pkgdir}" install
2015-07-08 05:57:17 +08:00
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
}