aboutsummaryrefslogtreecommitdiffstats
path: root/community/libqmi/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 08:38:48 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 11:51:52 +0000
commit071c894e3705349e7ab215fc9afe14288f4ed64b (patch)
tree0e29d2d60ce5c3f4071ebd678dd802223db1b200 /community/libqmi/APKBUILD
parentfdbe69970feddd15c3096d93cc91f9093b18e53c (diff)
downloadaports-071c894e3705349e7ab215fc9afe14288f4ed64b.tar.gz
aports-071c894e3705349e7ab215fc9afe14288f4ed64b.tar.bz2
aports-071c894e3705349e7ab215fc9afe14288f4ed64b.tar.xz
community/libqmi: add bash-completion subpackage
Diffstat (limited to 'community/libqmi/APKBUILD')
-rw-r--r--community/libqmi/APKBUILD16
1 files changed, 14 insertions, 2 deletions
diff --git a/community/libqmi/APKBUILD b/community/libqmi/APKBUILD
index d57e6f2202..e8609713a1 100644
--- a/community/libqmi/APKBUILD
+++ b/community/libqmi/APKBUILD
@@ -2,13 +2,17 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libqmi
pkgver=1.24.10
-pkgrel=0
+pkgrel=1
pkgdesc="QMI modem protocol helper library"
url="https://www.freedesktop.org/wiki/Software/libqmi"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
makedepends="glib-dev gtk-doc libgudev-dev libmbim-dev linux-headers python3"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="
+ $pkgname-dev
+ $pkgname-doc
+ $pkgname-bash-completion:bashcomp:noarch
+ "
source="https://www.freedesktop.org/software/libqmi/libqmi-$pkgver.tar.xz"
# Tests fail
@@ -33,4 +37,12 @@ package() {
make DESTDIR="$pkgdir" install
}
+bashcomp() {
+ depends=""
+ pkgdesk="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ amove usr/share/bash-completion/completions
+}
+
sha512sums="1602ec5e6da91f6366d9b1755324042cac2aab77d568079b85c8180e8c74967a272a20611b0016639c4c047b9c1d75e4887cf438d40c6b93f1d04be391fd7432 libqmi-1.24.10.tar.xz"