aboutsummaryrefslogtreecommitdiffstats
path: root/community/stress-ng
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 04:01:49 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 04:01:49 -0300
commit3cb7ee719557b8deb53bd9f43f8a0bda7015980b (patch)
tree5a66ef38a3c9604878f48512be07e7ca300a45ed /community/stress-ng
parentab270d8339292907c453cf400acb46f3e3d6a0ee (diff)
downloadaports-3cb7ee719557b8deb53bd9f43f8a0bda7015980b.tar.bz2
aports-3cb7ee719557b8deb53bd9f43f8a0bda7015980b.tar.xz
community/stress-ng: add bash-completion subpackage
Diffstat (limited to 'community/stress-ng')
-rw-r--r--community/stress-ng/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/community/stress-ng/APKBUILD b/community/stress-ng/APKBUILD
index d3e48a1a67..87e917d39b 100644
--- a/community/stress-ng/APKBUILD
+++ b/community/stress-ng/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=stress-ng
pkgver=0.11.00
-pkgrel=0
+pkgrel=1
pkgdesc="stress-ng will stress test a computer system in various selectable ways"
url="https://kernel.ubuntu.com/~cking/stress-ng/"
arch="all !mips !mips64"
@@ -15,7 +15,7 @@ makedepends="
lksctp-tools-dev
zlib-dev
"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
source="https://kernel.ubuntu.com/~cking/tarballs/stress-ng/stress-ng-$pkgver.tar.xz
fix-kernel-header-detection.patch"
@@ -28,5 +28,13 @@ package() {
JOBDIR="/usr/share/doc/$pkgname/example-jobs/" install
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ amove usr/share/bash-completion/completions
+}
+
sha512sums="d10ad50c2acb6ab53926155fd382c409bbf832a944ec1c3f3ba1c0266cc685dae2bb2c3e24f59e039eea438ad79d5efaafe02745e0e08b9d919894461e2bc49a stress-ng-0.11.00.tar.xz
d444d2f0bc1969b133f8a915592079efdb049f08a4e13e4cfa078dc856015bbeb499abb47817b088a935096fe28c748d328f6907138eea6ec47f51efcd0d6889 fix-kernel-header-detection.patch"