diff options
Diffstat (limited to 'community/cpulimit/APKBUILD')
-rw-r--r-- | community/cpulimit/APKBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/cpulimit/APKBUILD b/community/cpulimit/APKBUILD new file mode 100644 index 0000000000..b9d0344f68 --- /dev/null +++ b/community/cpulimit/APKBUILD @@ -0,0 +1,26 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=cpulimit +pkgver=0.2 +pkgrel=0 +pkgdesc="CPU usage limiter for Linux" +url="https://github.com/opsengine/cpulimit" +arch="all" +license="GPL-2.0-or-later" +source="$pkgname-$pkgver.tar.gz::https://github.com/opsengine/cpulimit/archive/v$pkgver.tar.gz + no-sysctl.patch + " + +build() { + make -C src +} + +check() { + make -C tests +} + +package() { + install -Dm755 src/cpulimit "$pkgdir"/usr/bin/cpulimit +} + +sha512sums="73c973f3b86cdc225054c742ddb205ce0378817695531e3e8e45053c50d2d9762f3a15adbfffc8fc2b91f96ce9c9dbf8a9ad4e7ce4cf214f349859b298683b47 cpulimit-0.2.tar.gz +13ddc48d810bdc28131babb653a06bd8ec25c6108fdbd34f2901c977d6fa6102d5e9c142e5a357711304272c97c2adb7fbf17164f0efdf4b4433ad271af9d09b no-sysctl.patch" |