aboutsummaryrefslogtreecommitdiff
path: root/systemd-zfs-partition-backup/AUR/PKGBUILD
blob: 39b4e4c3438f9d22893f7d92b920e2829195863f (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
# Maintainer: Max Christian Pohle <webmaster@coderonline.de>
pkgname=systemd-zfs-partition-backup
pkgver=2020_07_11
# release number, always starts with 1
pkgrel=1
pkgdesc="automatically backup usb* drives to zfs datasets, encryption supported"
arch=('any')
url="http://git.entwicklerseite.de/zfs-auto-backup"
license=('MIT')
depends=(
  'systemd'
  'kbd'
  'mkinitcpio'
  'rsync'
)
source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz")
sha256sums=('2930678316eb0a6e67ab29f2ad378ea4d6e90ec49870742d68f78278c1a949e3')

package() {
    install -D        zfs-bash-tools-master/${pkgname}.sh \
                                     ../pkg/${pkgname}/usr/bin/${pkgname}.sh

    install -D -m 644 zfs-bash-tools-master/${pkgname}/systemd/${pkgname}\@.service \
                                     ../pkg/${pkgname}/usr/lib/systemd/system/${pkgname}\@.service

    install -D -m 644 zfs-bash-tools-master/${pkgname}/udev/rules.d/90-${pkgname}.rules \
                                     ../pkg/${pkgname}/etc/udev/rules.d/90-${pkgname}.rules

    systemctl daemon-reload
    udevadm control --reaload
}

# vim: ft=bash
..