summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe54d3a227a3ac21647e571e7d7359bd7ce73d9b (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: Yorick Rommers <yorick-rommers@hotmail.com>

pkgname=dattobd
pkgver=20150805
pkgrel=1
pkgdesc="kernel module for taking block-level snapshots and incremental backups of Linux block devices"
arch=('any')
url="https://github.com/datto/dattobd"
license=('unknown')
depends=('')
source=("git://github.com/datto/dattobd.git"
        "http://www.imegumii.nl/dattobd.conf")
md5sums=("SKIP"
         "SKIP")
build() {
  cd "$srcdir/$pkgname"
  sudo make
}

package() {
  cd "$srcdir/$pkgname"
  sudo make install
  sudo install -D "src/dattobd.ko" "/usr/lib/modules//$(uname -r)/"
  sudo install -D "../dattobd.conf" "/etc/modules-load.d/"
  sudo rm -f "src/dattobd/src/.tmp_versions/dattobd.mod"
  sudo modprobe dattobd
}