aboutsummaryrefslogtreecommitdiffstats
path: root/main/kmod
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2015-09-29 10:19:07 +0000
committerEivind Uggedal <eivind@uggedal.com>2015-09-29 10:19:07 +0000
commit491d4ee39a317236395a6dd9f042ba4271ac7705 (patch)
tree73b780ee4480daf2df2f650c7c962ad1756ebfc3 /main/kmod
parent6252c5c24a55bedf25d1b55bde974ca1a179fa28 (diff)
downloadaports-491d4ee39a317236395a6dd9f042ba4271ac7705.tar.bz2
aports-491d4ee39a317236395a6dd9f042ba4271ac7705.tar.xz
main/kmod: bash-completion install_if fix
Diffstat (limited to 'main/kmod')
-rw-r--r--main/kmod/APKBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD
index 2fd3a7b249..fce22c1c49 100644
--- a/main/kmod/APKBUILD
+++ b/main/kmod/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kmod
pkgver=21
-pkgrel=4
+pkgrel=5
pkgdesc="Linux kernel module management utilities"
url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
arch="all"
@@ -14,7 +14,7 @@ makedepends="$depends_dev zlib-dev xz-dev libxslt"
install=""
triggers="$pkgname.trigger=/lib/modules/*"
subpackages="$pkgname-dev $pkgname-doc
- $pkgname-bash-completion:completion"
+ $pkgname-bash-completion:bashcomp"
source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz
strndupa.patch
sed-ere.patch
@@ -68,8 +68,12 @@ libs() {
mv "$pkgdir"/lib "$subpkgdir"/
}
-completion() {
- install_if="bash $pkgname=$pkgver-r$pkgrel"
+bashcomp() {
+ pkgdesc="Bash completion for $pkgname"
+ arch="noarch"
+ depends=""
+ install_if="bash-completion $pkgname=$pkgver-r$pkgrel"
+
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/ \
|| return 1