blob: 67517eec6fff077fc1e1bad506ad706b1c7edc91 (
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
|
# Maintainer: Nogweii <me@nogweii.net>
# Mainteiner: Donald Webster <fryfrog@gmail.com>
pkgname=runrestic
pkgver=0.5.28
pkgrel=2
pkgdesc='A wrapper script for Restic backup software that inits, creates, prunes and checks backups'
arch=(any)
url='https://pypi.org/project/runrestic'
license=('GPL3')
depends=(
'restic'
'python-toml'
'python-jsonschema'
'python-requests'
)
checkdepends=('python-pytest')
makedepends=('python-setuptools')
source=(
"https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
runrestic.service
runrestic.timer
)
sha256sums=('62cd131161379607d3fba1a43e71e57a24e1d747af064bd1b8bab207ec102542'
'd636f96922c1c018c8cd359c3cedc72ac3764c8ee0aace3265ddc6538a56be5d'
'73b08193d7022f538c326bb4674712f2e2a827ccc557d48bd36416f7d08c598e')
check() {
cd "${pkgname}-${pkgver}"
python setup.py test
}
package() {
cd "${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -D -m 644 "${srcdir}/runrestic.service" ${pkgdir}/usr/lib/systemd/system/runrestic.service
install -D -m 644 "${srcdir}/runrestic.timer" ${pkgdir}/usr/lib/systemd/system/runrestic.timer
}
|