summaryrefslogtreecommitdiff
path: root/community/cpulimit/PKGBUILD
blob: bd8d6a085010c7ec598ad370f903505b8f6fa947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $Id: PKGBUILD 17379 2010-05-24 09:44:15Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=cpulimit
pkgver=1.1
pkgrel=2.1
pkgdesc="Limit cpu usage in %. Actualy sends SIGSTOP/SIGCONT"
arch=('i686' 'x86_64' 'mips64el')
url="http://cpulimit.sourceforge.net/"
license=("GPL")
depends=(glibc)
source=("http://downloads.sourceforge.net/sourceforge/cpulimit/cpulimit-$pkgver.tar.gz")
md5sums=('f4ff6d4bfaef1258e8f5cd2041e2e2a3')

build() {
  cd $startdir/src/$pkgname-$pkgver
  # The included trivial Makefile ignores CFLAGS and LDFLAGS, so
  # running the compiler manually here.
  ${CC:-gcc} ${LDFLAGS} ${CFLAGS} -o cpulimit cpulimit.c -lrt
  install -D -m0755 cpulimit $startdir/pkg/usr/bin/cpulimit
}