1 # Maintainer: Paul Mattal <paul@archlinux.org>
6 pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
9 source=(https://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
12 url="https://sourceforge.net/projects/hdparm/"
13 sha512sums=('c561825143d8872cc2940bd6ba72162f91792bd63b6a8511058e79cc96feb6a4a9d22275581ef2eefab64a4035587b3a63175ccc58fa46f1059b4680d9d58ec4'
14 '4103276304a858a9540ce173f22c5eb64cadac36b5cd38d9396d63fa721a579e16d4d0f84e3c627d0620c42815c437abf14c9657fdb1a28e8263a52a0bb26c4f')
17 cd ${pkgname}-${pkgver}
19 patch -Np1 -i "$srcdir"/pass-ldflags.patch
23 cd ${pkgname}-${pkgver}
28 cd ${pkgname}-${pkgver}
30 mkdir -p "${pkgdir}"/usr/bin
31 make DESTDIR="${pkgdir}" sbindir=/usr/bin install
32 install -m755 contrib/idectl "${pkgdir}"/usr/bin
33 install -m755 contrib/ultrabayd "${pkgdir}"/usr/bin
35 install -D -m 0644 $srcdir/$pkgname-$pkgver/wiper/README.txt "$pkgdir"/usr/share/doc/wiper/README.txt
36 install -D -m 0755 $srcdir/$pkgname-$pkgver/wiper/wiper.sh "$pkgdir"/usr/bin/wiper.sh
39 install -D -m 644 LICENSE.TXT "$pkgdir"/usr/share/licenses/hdparm/LICENSE.TXT