blob: cb4f3f1325bb56748182ef63464feab78c9ad0fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cpulimit
pkgver=0.0.2014.03.09
pkgrel=0
pkgdesc="CPU usage limiter for Linux"
url="https://github.com/opsengine/cpulimit"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/cpulimit/cpulimit-$pkgver.tar.gz
no-sysctl.patch
"
_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="75b21785a1bbe63bf3f745eec3b4e1de cpulimit-0.0.2014.03.09.tar.gz
3190926c02130090757376f0b4f2b73d no-sysctl.patch"
sha256sums="5eb2998f88dd61291085744a1b936aa18ae6c656c9ce8574bb43c863b8157d6f cpulimit-0.0.2014.03.09.tar.gz
9b4118a5a77d2884ea38d657bac6dcf54232e990537c1fb73fbb4a852423d508 no-sysctl.patch"
sha512sums="59f795fb76416b83f64b74a39f6c646bab49086a533af37d0eeaf2aeca9abc3d158d70e978d08595376199b9936cbcada287f9df954423d04bf95fbfbac35085 cpulimit-0.0.2014.03.09.tar.gz
13ddc48d810bdc28131babb653a06bd8ec25c6108fdbd34f2901c977d6fa6102d5e9c142e5a357711304272c97c2adb7fbf17164f0efdf4b4433ad271af9d09b no-sysctl.patch"
|