PKGBUILDs/core/hdparm/PKGBUILD
2009-10-10 21:26:49 -05:00

31 lines
893 B
Bash

# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=hdparm
pkgver=9.27
pkgrel=1
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
arch=('arm')
depends=('glibc')
optdepends=('sh: required by idectl and ultrabayd')
groups=('base')
source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz)
license=('BSD')
url="http://sourceforge.net/projects/hdparm/"
options=('emptydirs')
md5sums=('e652dabb6c9233fb8a23ef60a17a1829')
build() {
cd ${srcdir}/${pkgname}-${pkgver} || return 1
# build
make || return 1
# install
mkdir -p ${pkgdir}/{usr,sbin} || return 1
make DESTDIR=${pkgdir} install || return 1
install -m755 contrib/idectl ${pkgdir}/sbin || return 1
install -m755 contrib/ultrabayd ${pkgdir}/sbin || return 1
#install license file
install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT
}