OCaml 4.14.0 rebuild
[arch-packages.git] / hdparm / trunk / PKGBUILD
blob0fe62eb3ff4398d5b7bc1b7f019470f168e16dcd
1 # Maintainer: Paul Mattal <paul@archlinux.org>
3 pkgname=hdparm
4 pkgver=9.64
5 pkgrel=1
6 pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
7 arch=(x86_64)
8 depends=('glibc')
9 source=(https://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
10         pass-ldflags.patch)
11 license=('BSD')
12 url="https://sourceforge.net/projects/hdparm/"
13 sha512sums=('c561825143d8872cc2940bd6ba72162f91792bd63b6a8511058e79cc96feb6a4a9d22275581ef2eefab64a4035587b3a63175ccc58fa46f1059b4680d9d58ec4'
14             '4103276304a858a9540ce173f22c5eb64cadac36b5cd38d9396d63fa721a579e16d4d0f84e3c627d0620c42815c437abf14c9657fdb1a28e8263a52a0bb26c4f')
16 prepare() {
17   cd ${pkgname}-${pkgver}
18   # Enable FULL RELRO
19   patch -Np1 -i "$srcdir"/pass-ldflags.patch
22 build() {
23   cd ${pkgname}-${pkgver}
24   make
27 package() {
28   cd ${pkgname}-${pkgver}
29   # install
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
38   #install license file
39   install -D -m 644 LICENSE.TXT "$pkgdir"/usr/share/licenses/hdparm/LICENSE.TXT