diff options
author | David Huffman <storedbox@outlook.com> | 2016-01-22 15:21:30 -0500 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-01-22 20:49:37 +0000 |
commit | 710dfe75e9444d9b24c30716cd516a7cd813753f (patch) | |
tree | 6bdc0221758d26f7e95285319747a2e805487caf /testing/libgflags | |
parent | 18cba16ee2b970e39d79906acd52dbbdfc88a4ab (diff) | |
download | aports-710dfe75e9444d9b24c30716cd516a7cd813753f.tar.bz2 aports-710dfe75e9444d9b24c30716cd516a7cd813753f.tar.xz |
testing/libgflags: move bash completions to subpkg
Diffstat (limited to 'testing/libgflags')
-rw-r--r-- | testing/libgflags/APKBUILD | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/testing/libgflags/APKBUILD b/testing/libgflags/APKBUILD index ca4c3232dc..a1f4f73dfb 100644 --- a/testing/libgflags/APKBUILD +++ b/testing/libgflags/APKBUILD @@ -12,7 +12,7 @@ depends="" depends_dev="" makedepends="$depends_dev cmake" install="" -subpackages="$pkgname-dev $pkgname-doc" +subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion:bashcomp" source="https://github.com/gflags/gflags/archive/v$pkgver/$_srcname.tar.gz" _builddir="$srcdir/$_srcname" @@ -49,6 +49,16 @@ package() { cp -r doc "$docdir/html" } +bashcomp() { + depends="" + pkgdesc="Bash completion for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + arch="noarch" + + install -Dm644 "$pkgdir/usr/bin/gflags_completions.sh" \ + "$subpkgdir/usr/share/bash-completion/completions/gflags" +} + md5sums="ac432de923f9de1e9780b5254884599f gflags-2.1.2.tar.gz" sha256sums="d8331bd0f7367c8afd5fcb5f5e85e96868a00fd24b7276fa5fcee1e5575c2662 gflags-2.1.2.tar.gz" sha512sums="f636023c1150e4d536d2d472e40d643ff0b02d3c96d8cb7f31544df23e6255fa6c4fd927ef94a3660c250d3faeae7d8d78519fc5e856749a577347a78d9d9ab5 gflags-2.1.2.tar.gz" |