summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acc71591b58f4f52aaa9b3b778c8862b2563c80a (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
# Maintainer: Jon Gjengset <jon@thesquareplanet.com>, Saren Arterius <saren@wtako.net>
# Maintainer: George Amanakis<gamanakis@gmail.com>
pkgname=cpuset-git
pkgver=r80.662fe6f
pkgver() {
	cd "${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgrel=1
pkgdesc="Cpuset is a Python application to make using the cpusets facilities in the Linux kernel easier."
arch=('any')
url="https://github.com/lpechacek/cpuset/"
license=('GPL2')
depends=('python' 'python-future')
options=('!emptydirs')
provides=('cpuset')
conflicts=('cpuset')
makedepends=('git')
# 0001-remove-exclusivity.patch removes setting cpu_exclusive and mem_exclusive to 1,
# thus enabling cpuset to run even when a machine.slice has been created and cannot be modified
source=('git+https://github.com/lpechacek/cpuset'
	'0001-remove-exclusivity.patch')
md5sums=('SKIP'
         'f3dc8cdca7977027c5683ce51462b6fa')

package() {
	cd "$srcdir/${pkgname%-git}"
	patch -p1 -i ../0001-remove-exclusivity.patch
	python setup.py install --root="$pkgdir/" --optimize=1
}