diff options
Diffstat (limited to 'main/kmod')
-rw-r--r-- | main/kmod/APKBUILD | 12 |
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 |