summaryrefslogtreecommitdiffstats
path: root/main/cpulimit/APKBUILD
blob: e377aeda34607029016a67dd98a458a35c00b635 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cpulimit
pkgver=0.0.2012.06.05
pkgrel=2
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
	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"
sha256sums="032031fa8b8c1254f2e264bced4c2ba56b1a5927f4229460abacff204e31bbbb  cpulimit-0.0.2012.06.05.tar.gz
3f4def082aa9c7e0db809668ed3be8ab646bb724dfe6c0b45dc41fbd7f461334  fix-crash-on-sigquit.patch"
sha512sums="b5fc0c5508f1c608dda7d193b583a60280553995e74e371592378185ccdcf39f9f4471659257a9f360bcb35dc27b62effe95b059750126677284978cc9792bc0  cpulimit-0.0.2012.06.05.tar.gz
ca8087673a9eeefcf0c00273870123831e0faa842092b6fcec4864cd33c3d0b2538e02853bdc8744c4f53b12f8969042b77668010df6e986b728784571db2e4e  fix-crash-on-sigquit.patch"