~alpine/aports

testing/libgflags: move bash completions to subpkg v1 PROPOSED

David Huffman: 1
 testing/libgflags: move bash completions to subpkg

 1 files changed, 11 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/2152/mbox | git am -3
Learn more about email & git

[alpine-aports] [PATCH] testing/libgflags: move bash completions to subpkg Export this patch

---
 testing/libgflags/APKBUILD | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/testing/libgflags/APKBUILD b/testing/libgflags/APKBUILD
index ca4c323..a1f4f73 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"
-- 
2.7.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---