diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-11 06:41:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-11 06:41:43 +0000 |
commit | 046420ca04be27d21ef07dd8a93d420d0d5d2111 (patch) | |
tree | d4dfabaac750a143aec6d0ce36202c18412c9ec1 /testing/cpulimit | |
parent | 413ea2f55e30c9a3db7406f14e11a7ef5373d861 (diff) | |
download | aports-046420ca04be27d21ef07dd8a93d420d0d5d2111.tar.bz2 aports-046420ca04be27d21ef07dd8a93d420d0d5d2111.tar.xz |
testing/cpulimit: new aport
CPU usage limiter for Linux
https://github.com/opsengine/cpulimit
Diffstat (limited to 'testing/cpulimit')
-rw-r--r-- | testing/cpulimit/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/cpulimit/APKBUILD b/testing/cpulimit/APKBUILD new file mode 100644 index 000000000..bf9ba7615 --- /dev/null +++ b/testing/cpulimit/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Natanael Copa +pkgname=cpulimit +pkgver=0.0.2012.06.05 +pkgrel=0 +pkgdesc="CPU usage limiter for Linux" +url="https://github.com/opsengine/cpulimit" +arch="all" +license="GPLv2+" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://dev.alpinelinux.org/archive/cpulimit/cpulimit-$pkgver.tar.gz" + +_builddir="$srcdir"/cpulimit +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" + install -Dm755 src/cpulimit "$pkgdir"/usr/bin/cpulimit +} + +md5sums="34796b9b49c622d1d2b3adb97b3cf965 cpulimit-0.0.2012.06.05.tar.gz" |