summaryrefslogtreecommitdiff
path: root/community/cpulimit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cpulimit/PKGBUILD')
-rw-r--r--community/cpulimit/PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/community/cpulimit/PKGBUILD b/community/cpulimit/PKGBUILD
index 7ef5ab146..bd8d6a085 100644
--- a/community/cpulimit/PKGBUILD
+++ b/community/cpulimit/PKGBUILD
@@ -4,9 +4,9 @@
pkgname=cpulimit
pkgver=1.1
-pkgrel=2
+pkgrel=2.1
pkgdesc="Limit cpu usage in %. Actualy sends SIGSTOP/SIGCONT"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://cpulimit.sourceforge.net/"
license=("GPL")
depends=(glibc)
@@ -15,6 +15,8 @@ md5sums=('f4ff6d4bfaef1258e8f5cd2041e2e2a3')
build() {
cd $startdir/src/$pkgname-$pkgver
- make
+ # 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
}