mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
33 lines
951 B
Bash
33 lines
951 B
Bash
# $Id: PKGBUILD 51328 2009-09-07 15:58:27Z tpowa $
|
|
# 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=(i686 x86_64)
|
|
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=('3cf69b270f49f651851889a0787934d1')
|
|
|
|
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
|
|
}
|
|
|