diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-12-02 22:11:34 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-12-02 22:11:34 -0600 |
commit | 178025eb61e2713479eb07a201b1d3cff34a9bd5 (patch) | |
tree | 9f2455a918b6e4b8e7f17c3e3b545237b471ef7d | |
parent | 4263f139c37fa3917f4076581c00bef585c42f7a (diff) | |
download | aports-178025eb61e2713479eb07a201b1d3cff34a9bd5.tar.bz2 aports-178025eb61e2713479eb07a201b1d3cff34a9bd5.tar.xz |
testing/hdparm: new aport
-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" |