aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmake
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-03-16 23:18:54 +0000
committerSören Tempel <soeren+git@soeren-tempel.net>2018-03-19 21:17:20 +0100
commitd4f4b72911c32a630da8a2c60c9b60724fa93d9a (patch)
treed4551f45554f56f2659a3df8d0f574d137de7be5 /main/cmake
parent8701564a68e4ea7ddd29300046938f48f94f6ccb (diff)
downloadaports-d4f4b72911c32a630da8a2c60c9b60724fa93d9a.tar.bz2
aports-d4f4b72911c32a630da8a2c60c9b60724fa93d9a.tar.xz
main/cmake: separate subpackage for bash completions
Diffstat (limited to 'main/cmake')
-rw-r--r--main/cmake/APKBUILD16
1 files changed, 13 insertions, 3 deletions
diff --git a/main/cmake/APKBUILD b/main/cmake/APKBUILD
index 5e40171901..483d52167f 100644
--- a/main/cmake/APKBUILD
+++ b/main/cmake/APKBUILD
@@ -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"