mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
aur/hd-idle to 1.04-1
This commit is contained in:
parent
2b5feead04
commit
0c4cd8ded6
1 changed files with 15 additions and 22 deletions
|
@ -1,43 +1,36 @@
|
|||
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
||||
# Contributor: Tilman Blumenbach <tilman@ax86.net>
|
||||
|
||||
# Plugbox changes: None. This package is just from AUR.
|
||||
|
||||
plugrel=1
|
||||
|
||||
pkgname=hd-idle
|
||||
pkgver=1.01
|
||||
pkgrel=5
|
||||
pkgver=1.04
|
||||
pkgrel=1
|
||||
pkgdesc='Utility program for spinning-down external disks after a period of idle time.'
|
||||
arch=(i686 x86_64)
|
||||
backup=(etc/conf.d/hd-idle)
|
||||
makedepends=(make)
|
||||
url="http://hd-idle.sourceforge.net/"
|
||||
license=('GPL')
|
||||
install="${pkgname}.install"
|
||||
source=("http://downloads.sf.net/${pkgname}/${pkgname}-${pkgver}.tgz"
|
||||
install="hd-idle.install"
|
||||
source=("http://downloads.sf.net/$pkgname/$pkgname-$pkgver.tgz"
|
||||
"hd-idle.init")
|
||||
md5sums=('41e52e669fc59fa82ee0c2bcce1336d3'
|
||||
'19c07682085d7fa99527c0f35073d331')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
# Build binary
|
||||
make || return 1
|
||||
cd "$srcdir/$pkgname"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
mkdir -p "${pkgdir}/usr/sbin"
|
||||
cd "$srcdir/$pkgname"
|
||||
|
||||
# Install binary
|
||||
make TARGET_DIR="${pkgdir}/usr/sbin" install || return 1
|
||||
make TARGET_DIR="$pkgdir/usr" install
|
||||
|
||||
# Install init script and defaults file:
|
||||
install -Do 0 -g 0 "${srcdir}/hd-idle.init" "${pkgdir}/etc/rc.d/hd-idle"
|
||||
install -Dpm 644 -o 0 -g 0 "scripts/debian/default/hd-idle" "${pkgdir}/etc/conf.d/hd-idle"
|
||||
# Install custom init script and stock defaults file:
|
||||
install -Do 0 -g 0 "$srcdir/hd-idle.init" "$pkgdir/etc/rc.d/hd-idle"
|
||||
install -Dpm 644 -o 0 -g 0 debian/hd-idle.default "$pkgdir/etc/conf.d/hd-idle"
|
||||
|
||||
# Install README:
|
||||
install -Dm 644 -o 0 -g 0 README "${pkgdir}/usr/share/doc/${pkgname}/README"
|
||||
install -Dm 644 -o 0 -g 0 README "$pkgdir/usr/share/doc/$pkgname/README"
|
||||
}
|
||||
|
||||
md5sums=('bfb7db4d4372d3954b7cd96a11956741'
|
||||
'19c07682085d7fa99527c0f35073d331')
|
||||
|
|
Loading…
Reference in a new issue