mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
31 lines
893 B
Bash
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
|
|
}
|