updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hd-idle / PKGBUILD
blob80bb051bafd22cf0277be4c645fdea2084d1d3d1
1 # Contributor: Tilman Blumenbach <tilman@ax86.net>
3 pkgname=hd-idle
4 pkgver=1.01
5 pkgrel=5
6 pkgdesc='Utility program for spinning-down external disks after a period of idle time.'
7 arch=(i686 x86_64)
8 backup=(etc/conf.d/hd-idle)
9 makedepends=(make)
10 url="http://hd-idle.sourceforge.net/"
11 license=('GPL')
12 install="${pkgname}.install"
13 source=("http://downloads.sf.net/${pkgname}/${pkgname}-${pkgver}.tgz"
14         "hd-idle.init")
16 build() {
17     cd "${srcdir}/${pkgname}-${pkgver}"
19     # Build binary
20     make || return 1
23 package() {
24     cd "${srcdir}/${pkgname}-${pkgver}"
25     mkdir -p "${pkgdir}/usr/sbin"
27     # Install binary
28     make TARGET_DIR="${pkgdir}/usr/sbin" install || return 1
30     # Install init script and defaults file:
31     install -Do 0 -g 0 "${srcdir}/hd-idle.init" "${pkgdir}/etc/rc.d/hd-idle"
32     install -Dpm 644 -o 0 -g 0 "scripts/debian/default/hd-idle" "${pkgdir}/etc/conf.d/hd-idle"
34     # Install README:
35     install -Dm 644 -o 0 -g 0 README "${pkgdir}/usr/share/doc/${pkgname}/README"
38 md5sums=('bfb7db4d4372d3954b7cd96a11956741'
39          '19c07682085d7fa99527c0f35073d331')