core/hdparm/PKGBUILD

32 lines
946 B
Bash
Raw Normal View History

2010-04-04 22:20:41 +08:00
# $Id: PKGBUILD 72935 2010-03-21 16:14:26Z tpowa $
2010-03-13 23:25:19 +08:00
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=hdparm
2010-04-04 22:20:41 +08:00
pkgver=9.28
pkgrel=1
2010-03-13 23:25:19 +08:00
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
arch=(i686 x86_64)
depends=('glibc')
optdepends=('sh: required by idectl and ultrabayd')
source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz)
license=('BSD')
url="http://sourceforge.net/projects/hdparm/"
options=('emptydirs')
2010-04-04 22:20:41 +08:00
md5sums=('b672d175bbf924b3f7575a8279eb063d')
2010-03-13 23:25:19 +08:00
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 || return 1
}