aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-04-03 17:33:39 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-04-03 17:33:39 +0000
commit5627d4ee5817140e94aac5e14e143cd664b7dcb4 (patch)
tree35667f5a220ddf31d5d1526e2e382e5037ab8372
parent47b232bff87befeca52cfba70dcfb7b45e41350c (diff)
downloadaports-5627d4ee5817140e94aac5e14e143cd664b7dcb4.tar.bz2
aports-5627d4ee5817140e94aac5e14e143cd664b7dcb4.tar.xz
main/hdparm: upgrade to 9.51, modernize APKBUILD
-rw-r--r--main/hdparm/APKBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/main/hdparm/APKBUILD b/main/hdparm/APKBUILD
index 7025ee1da0..a8af7c0aca 100644
--- a/main/hdparm/APKBUILD
+++ b/main/hdparm/APKBUILD
@@ -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"