blob: bf9ba7615332f6e22b1dbc62a7aeb0cbf1488d17 (
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
|
# 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"
|