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