updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / limitcpu / PKGBUILD
blob12ac0c266ba8516efc137be57f55da02f993bd21
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
3 _pkg=cpulimit
4 pkgname=limitcpu
5 pkgver=1.4
6 pkgrel=1
7 pkgdesc="A simple program that attempts to limit the CPU usage of a process, expressed in percentage."
8 arch=('i686' 'x86_64')
9 url="http://$pkgname.sourceforge.net/"
10 license=("GPL")
11 depends=('glibc')
12 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$_pkg-$pkgver.tar.gz")
13 md5sums=('16c0177cc3d9d27b8653a33ba981c682')
15 build() {
16   cd "$srcdir/$_pkg-$pkgver"
18   # rename to limitcpu to not conflict
19   # with cpulimit in [community]
21   mv $_pkg.c $pkgname.c
22   sed -i "s|$_pkg|$pkgname|g" Makefile
23   zcat $_pkg.1.gz | sed "s|$_pkg|$pkgname|g" | gzip -9 > $pkgname.1.gz
25   make
27 package() {
28   cd "$srcdir/$_pkg-$pkgver"
30   make PREFIX="$pkgdir/usr" install