Commit 5627d4ee authored by Francesco Colista's avatar Francesco Colista

main/hdparm: upgrade to 9.51, modernize APKBUILD

parent 47b232bf
......@@ -6,25 +6,25 @@ pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
url="http://sourceforge.net/projects/hdparm/"
arch="all"
license="BSD"
makedepends="linux-headers "
makedepends="linux-headers"
options="!check"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
make || return 1
make
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr "$pkgdir"/sbin
make DESTDIR="$pkgdir" install || return 1
install -m755 contrib/idectl "$pkgdir"/sbin || return 1
install -m755 contrib/ultrabayd "$pkgdir"/sbin || return 1
install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT || return 1
make DESTDIR="$pkgdir" install
install -m755 contrib/idectl "$pkgdir"/sbin
install -m755 contrib/ultrabayd "$pkgdir"/sbin
install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT
}
sha512sums="144d073d697d05058e0240ff46e5517803baa8475e1d381a31c25179ceb1564bbb561ba7f9dee8654d80a3510e3bf2f2d2f4a267618f0ab27967f37626aef91c hdparm-9.51.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment