43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
# This is an example PKGBUILD file. Use this as a start to creating your own,
 | 
						|
# and remove these comments. For more information, see 'man PKGBUILD'.
 | 
						|
# NOTE: Please fill out the license field for your package! If it is unknown,
 | 
						|
# then please put 'unknown'.
 | 
						|
 | 
						|
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
 | 
						|
# for more information on packaging from GIT sources.
 | 
						|
 | 
						|
# Maintainer: Mike Lenzen <lenzenmi@gmail.com>
 | 
						|
pkgname=cpulimit-git
 | 
						|
pkgver=1
 | 
						|
pkgrel=1
 | 
						|
pkgdesc="Limit cpu usage in %. Actualy sends SIGSTOP/SIGCONT"
 | 
						|
arch=('i686' 'x86_64')
 | 
						|
url="https://github.com/opsengine/cpulimit"
 | 
						|
license=('GPL')
 | 
						|
depends=('glibc')
 | 
						|
makedepends=('git')
 | 
						|
provides=('cpulimit')
 | 
						|
conflicts=('cpulimit')
 | 
						|
source=("patch")
 | 
						|
 | 
						|
md5sums=('SKIP'
 | 
						|
         '524d8ec2fa0d6f5c4e2f453929c94c3e')
 | 
						|
 | 
						|
build() {
 | 
						|
  rm $pkgname
 | 
						|
  ln -sf $srcdir/../.. $pkgname
 | 
						|
  cd "$srcdir/$pkgname"
 | 
						|
 | 
						|
  make
 | 
						|
}
 | 
						|
 | 
						|
# Patch to remove sysctl.h - removed from linxu
 | 
						|
prepare() {
 | 
						|
  cd "$srcdir/$pkgname"
 | 
						|
  patch --forward --strip=1 --input="${srcdir}/patch"
 | 
						|
}
 | 
						|
 | 
						|
package() {
 | 
						|
  install -D -m0755 $srcdir/$pkgname/src/cpulimit $pkgdir/usr/bin/cpulimit
 | 
						|
}
 |