blob: c310ff95814d85e1c9392683940cb299091e9cec (
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
|
# Maintainer: Matthias Riegler <matthias@xvzf.tech>
pkgname=dataleech
pkgdesc="Backup plan using ZFS..."
pkgver=1.0.5
pkgrel=1
arch=("any")
url="https://github.com/xvzf/dataleech"
license=("GPL3")
depends=("zfs-utils" "python" "python-click" "pv" "openssh" "cronie")
provides=("dataleech" "superman")
backup=("etc/dataleech/datasets")
source=("https://github.com/xvzf/dataleech/archive/${pkgver}.tar.gz")
sha256sums=("076d17fa5394cd32dfefb20458068a3b04f8552b27d590140a66679aaf37d2b6")
build() {
cd "${srcdir}/dataleech-${pkgver}/"
python setup.py build
}
package() {
# Install dataleech
cd "${srcdir}/dataleech-${pkgver}/"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
# Copy cronfiles
mkdir -p ${pkgdir}/etc/{dataleech,cron.d}
install -Dm644 "${srcdir}/dataleech-${pkgver}/other/configfiles/datasets" \
"${pkgdir}/etc/dataleech/datasets"
install -Dm644 "${srcdir}/dataleech-${pkgver}/other/cronfiles/dataleech.10min" \
"${pkgdir}/etc/cron.d/dataleech"
install -Dm755 "${srcdir}/dataleech-${pkgver}/other/cronfiles/dataleech.daily" \
"${pkgdir}/etc/cron.daily/dataleech"
install -Dm755 "${srcdir}/dataleech-${pkgver}/other/cronfiles/dataleech.weekly" \
"${pkgdir}/etc/cron.weekly/dataleech"
# Copy the pacman wrapper superman
install -Dm755 "${srcdir}/dataleech-${pkgver}/other/scripts/superman" \
"${pkgdir}/usr/bin/superman"
}
# vim:set ts=4 sts=2 sw=2 et:
|