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=('4ffc8902b90cee10d68af8ddb9f3b9454d523ecd49cdaaed254b4d7a999462a8ad5ec1bb5d7684b09fefa41b5941ab533b167dad290003b51c795a633ca88913'
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