diff options
-rw-r--r-- | testing/hdparm/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/hdparm/APKBUILD b/testing/hdparm/APKBUILD new file mode 100644 index 0000000000..c3d24ed7a0 --- /dev/null +++ b/testing/hdparm/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: +pkgname=hdparm +pkgver=9.37 +pkgrel=0 +pkgdesc="hard drive parameter setting and benchmarking tool" +url="http://sourceforge.net/projects/hdparm" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-$pkgver.tar.gz" + +_builddir="$srcdir"/hdparm-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="0bb94ddd1bedd5c02b1ca62f1caaf6de hdparm-9.37.tar.gz" |