summaryrefslogtreecommitdiffstats
path: root/abs/core/hdparm/PKGBUILD
blob: 2e1a4413bbeac3bb7d38aeb06e21951f34ca0f36 (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
# $Id: PKGBUILD 7862 2008-08-04 20:16:21Z tpowa $
# Maintainer: Paul Mattal <paul@archlinux.org>

pkgname=hdparm
pkgver=9.29
pkgrel=1
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=('6575aba60e5adee628414cac76549c9b')