summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfbe6c8338a8f74838d7cdbdb76f55823b12ddc1 (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
# Maintainer: Alexander Görtz <aur@nyloc.de>

pkgname=borgmatic
_pkgname=atticmatic
pkgver=0.1.8
pkgrel=1
pkgdesc="A simple Python wrapper script for the borg (and attic) backup software."
arch=('any')
url="http://torsion.org/atticmatic/"
license=('GPL3')
depends=('borg')
makedepends=('python2-setuptools')
optdepends=('attic')
source=("https://torsion.org/hg/$_pkgname/archive/$pkgver.tar.gz")
provides=('atticmatic')
conflicts=('atticmatic')
sha256sums=('db563b154638c426a8a055dca015d90c19ee08ce69c6a6a0783ddc038646e12e')


package() {
  cd "$srcdir/$_pkgname-$pkgver"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -D -m644 sample/config "$pkgdir/etc/$pkgname/config.example"
  install -D -m644 sample/excludes "$pkgdir/etc/$pkgname/excludes.example"
  install -D -m644 sample/atticmatic.cron "$pkgdir/etc/$pkgname/atticmatic.cron.example"
  install -D -m644 sample/borgmatic.cron "$pkgdir/etc/$pkgname/borgmatic.cron.example"
  python setup.py -q install --root="$pkgdir" --optimize=1
}