blob: 543e7e4f82848960a8738ea5a6f330ac4fee3220 (
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
|
# Maintainer: Nils Werner <nils.werner@gmail.com>
pkgname=crestic
pkgver=0.6.0
pkgrel=2
pkgdesc="Configurable restic wrapper"
arch=('any')
url="https://github.com/nils-werner/$pkgname"
license=('MIT')
depends=('python' 'restic')
optdepends=(
'python-appdirs: support for loading config files using appdirs'
)
source=(
"https://github.com/nils-werner/$pkgname/archive/v$pkgver.tar.gz"
"crestic-backup@.service"
"crestic-backup@.timer"
"crestic-forget@.service"
"crestic-forget@.timer"
)
sha256sums=(
"9587d7b0a9f47d02bcd23aa59b8bd8676094b3085e5b703df19cc6f0a56c9aff"
"487bdee984708f7c8e3fdf300d372a9cf60ac212c3898231011d50b4bb2161e6"
"be3b2461029a2d92329bcc1b42a8207f1c75ce03a6df86d72788ff2b8772ba70"
"d8a94324994b2caae186f70f1463bee7b998547e31739c6e790f9fca37019022"
"ea0050225c6527f8ebcc146f6dd60e15dede64b5820e25d94e511f7c01594ffc"
)
package() {
install -Dm 0644 crestic-backup@.service -t "$pkgdir"/usr/lib/systemd/system/
install -Dm 0644 crestic-backup@.timer -t "$pkgdir"/usr/lib/systemd/system/
install -Dm 0644 crestic-backup@.service -t "$pkgdir"/usr/lib/systemd/user/
install -Dm 0644 crestic-backup@.timer -t "$pkgdir"/usr/lib/systemd/user/
install -Dm 0644 crestic-forget@.service -t "$pkgdir"/usr/lib/systemd/system/
install -Dm 0644 crestic-forget@.timer -t "$pkgdir"/usr/lib/systemd/system/
install -Dm 0644 crestic-forget@.service -t "$pkgdir"/usr/lib/systemd/user/
install -Dm 0644 crestic-forget@.timer -t "$pkgdir"/usr/lib/systemd/user/
cd "$srcdir/$pkgname-$pkgver"
install -Dm 0755 "$pkgname".py "$pkgdir"/usr/bin/"$pkgname"
install -Dm 0644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"/
}
|