blob: 9ed2993c5fd55442ffce7ac6959cff3693dcfd2f (
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
|
# Maintainer: Natanael Copa
pkgname=cpulimit
pkgver=0.0.2012.06.05
pkgrel=1
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
fix-crash-on-sigquit.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="34796b9b49c622d1d2b3adb97b3cf965 cpulimit-0.0.2012.06.05.tar.gz
664a233f3057e9c0ad245ef4a72e51cd fix-crash-on-sigquit.patch"
|