summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 600b86ad5a9bb7b11ca9790049b65c5526d23e1e (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
# Maintainer: Thomas Weißschuh <thomas t-8ch de>

pkgname=hdapsd-git
pkgver=20150215
pkgrel=1
pkgdesc='HDAPS userspace hard drive protection daemon'
arch=('i686' 'x86_64')
url='https://github.com/evgeni/hdapsd/'
license=('GPL')
provides=('hdapsd')
conflicts=('hdapsd')
source=('git+https://github.com/evgeni/hdapsd/')
sha256sums=('SKIP')
backup=('etc/hdapsd.conf')
optdepends=('libconfig: (buildtime) for configuration file support')

build() {
  cd "$srcdir/hdapsd/"

  ./autogen.sh --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
  make
}

package() {
  cd "${srcdir}/hdapsd/"

  make DESTDIR="${pkgdir}/" install

  mv "${pkgdir}"/usr/lib/udev/rules.d/{,80-}hdapsd.rules
  install -d -m755 "${pkgdir}/etc"
  install -m644 misc/hdapsd.conf "${pkgdir}/etc/"
}

pkgver() {
  date '+%Y%m%d'
}