summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8a63101bd00545e95a8141cfccb495112a81c10 (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
# 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 modprobe dattobd
}