Commit d4f4b729 authored by prspkt's avatar prspkt Committed by Sören Tempel

main/cmake: separate subpackage for bash completions

parent 8701564a
......@@ -8,11 +8,11 @@ url="http://www.cmake.org"
arch="all"
license="BSD-3-Clause"
makedepends="ncurses-dev curl-dev expat-dev zlib-dev bzip2-dev libarchive-dev
libuv-dev xz-dev rhash-dev jsoncpp-dev"
libuv-dev xz-dev rhash-dev jsoncpp-dev"
options="!checkroot !check"
checkdepends="musl-utils file"
subpackages="$pkgname-doc"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch
"
case $pkgver in
*.*.*.*) _v=v${pkgver%.*.*};;
*.*.*) _v=v${pkgver%.*};;
......@@ -53,4 +53,14 @@ package() {
make DESTDIR="$pkgdir" install
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash"
mkdir -p "$subpkgdir"/usr/share/bash-completion
mv "$pkgdir"/usr/share/cmake/completions \
"$subpkgdir"/usr/share/bash-completion/
}
sha512sums="1ba6381321cb34c3c050548a1346d3b92d590a196d8aff7435c079cd485d01f7a6cd650ad97d00931aff424fcdc195bbaa6d9d7db679bf02f72f586c7b528ae4 cmake-3.10.3.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment