# Maintainer: Natanael Copa pkgname=hdparm pkgver=9.55 pkgrel=0 pkgdesc="Utility for manipulating IDE device parameters" url="https://sourceforge.net/projects/hdparm" arch="all" license="BSD GPL-2.0" makedepends="linux-headers" options="!check" subpackages="$pkgname-doc" source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare sed -i '/^LDFLAGS/d' "$builddir"/Makefile } build() { cd "$builddir" export CFLAGS="$CFLAGS -D_GNU_SOURCE" make } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -D -m755 contrib/idectl "$pkgdir"/sbin install -D -m755 contrib/ultrabayd "$pkgdir"/sbin install -D -m644 LICENSE.TXT "$pkgdir"/usr/share/licenses/hdparm/LICENSE.TXT } sha512sums="a9b5be38fda9db7f125ecc5a174668e81464266493672184d214ea9b50437e089482799fb5c817c433f897eac8741fe3dc052658969bb1ebac158606dee51196 hdparm-9.55.tar.gz"