archrelease: copy trunk to extra-x86_64
[arch-packages.git] / hdparm / repos / core-x86_64 / PKGBUILD
blob81f8246c357b606471b6579d765dc1a6e7fa919d
1 # Maintainer: Paul Mattal <paul@archlinux.org>
3 pkgname=hdparm
4 pkgver=9.65
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=('4ffc8902b90cee10d68af8ddb9f3b9454d523ecd49cdaaed254b4d7a999462a8ad5ec1bb5d7684b09fefa41b5941ab533b167dad290003b51c795a633ca88913'
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