summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49a780334662e5153fc6367bdc83fe407d956980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Maintainer: willemw <willemw12@gmail.com>

_pkgname=backintime-git
_pkgname_cli=backintime-cli-git
pkgname=($_pkgname $_pkgname_cli)
pkgver=1.4.3.r54.g50c74444
pkgrel=1
url=https://github.com/bit-team/backintime
license=(GPL)
arch=(any)
makedepends=(git python)
#checkdepends=(openssh python-dbus python-pyfakefs python-pylint rsync systemd)
install=$_pkgname.install
source=($_pkgname::git+$url.git)
sha256sums=('SKIP')

pkgver() {
  git -C $_pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname/common"
  ./configure --python
  make

  cd "$srcdir/$_pkgname/qt"
  ./configure --python
  make
}

#check() {
#  # Isolate some tests, accessing files in ~/.ssh/, etc.
#  HOME=$srcdir/tmp
#  export XDG_CACHE_HOME=$HOME/.cache
#  mkdir -p "$XDG_CACHE_HOME"
#
#  make -C $_pkgname/common test
#  make -C $_pkgname/qt test
#
#  rm -rf $_pkgname/common/tmp
#}

package_backintime-cli-git() {
  pkgdesc='Simple backup/snapshot system inspired by Flyback and TimeVault. CLI version'
  depends=(cron fuse2 openssh python-dbus python-keyring python-packaging rsync)
  #'ecryptfs-utils: verify home encryption'
  optdepends=(
    'encfs: encrypted filesystems'
    'sshfs: remote filesystems')
  provides=("${_pkgname_cli%-git}")
  conflicts=("${_pkgname_cli%-git}")

  make -C $_pkgname/common DESTDIR="$pkgdir" install
  python -m compileall -d /usr "$pkgdir/usr"
  python -O -m compileall -d /usr "$pkgdir/usr"
}

package_backintime-git() {
  pkgdesc='Simple backup/snapshot system inspired by Flyback and TimeVault. Qt6 GUI version'
  #depends=("${_pkgname_cli%-git}" libnotify polkit python-dbus python-pyqt6 xorg-xdpyinfo)
  depends=($_pkgname_cli libnotify polkit python-dbus python-pyqt6 xorg-xdpyinfo)
  # NOTE: Users can optionally install either kompare or meld but not both
  ##'python-secretstorage: store passwords'
  optdepends=(
    'kompare: diff tool'
    'meld: diff tool'
    'oxygen-icons: fallback icons'
    'python-keyring: store passwords'
    'qt6-translations: translate dialogs'
    'qt6-wayland: wayland support')
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  make -C $_pkgname/qt DESTDIR="$pkgdir" install
  python -m compileall -d /usr "$pkgdir/usr"
  python -O -m compileall -d /usr "$pkgdir/usr"
}