# $Id: PKGBUILD 7862 2008-08-04 20:16:21Z tpowa $
# Maintainer: Paul Mattal <paul@archlinux.org>

pkgname=hdparm
pkgver=8.9
pkgrel=10
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
arch=(i686 x86_64)
depends=('glibc')
groups=('base')
source=(http://heanet.dl.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz)
license=('BSD')
url="http://sourceforge.net/projects/hdparm/"

build() {
  cd ${startdir}/src/${pkgname}-${pkgver} || return 1

  # build
  make || return 1

  # install
  mkdir -p ${startdir}/pkg/{usr,sbin} || return 1
  make DESTDIR=${startdir}/pkg install || return 1
  install -m755 contrib/idectl ${startdir}/pkg/sbin || return 1
  install -m755 contrib/ultrabayd ${startdir}/pkg/sbin || return 1

  #install license file
  install -D -m 644 LICENSE.TXT $startdir/pkg/usr/share/licenses/hdparm/LICENSE.TXT

  # installs empty /usr/share, which we let it do since it causes
  # no harm and it might put something there someday
}
md5sums=('19fa013956612581af7d00907990ac84')