aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 04:04:13 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 04:04:13 -0300
commitb5aad386ec1c38bd1df55917aa9da54d361a2734 (patch)
treeb014b1fe5709220a2cecbad593ecb8168904d860
parentdde3b0632657b7813a02276b95d27a3d5c9fcac2 (diff)
downloadaports-b5aad386ec1c38bd1df55917aa9da54d361a2734.tar.gz
aports-b5aad386ec1c38bd1df55917aa9da54d361a2734.tar.bz2
aports-b5aad386ec1c38bd1df55917aa9da54d361a2734.tar.xz
community/colord: add bash-completion subpackages
-rw-r--r--community/colord/APKBUILD16
1 files changed, 14 insertions, 2 deletions
diff --git a/community/colord/APKBUILD b/community/colord/APKBUILD
index 0af196fc96..6f99276953 100644
--- a/community/colord/APKBUILD
+++ b/community/colord/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=colord
pkgver=1.4.4
-pkgrel=5
+pkgrel=6
pkgdesc="System daemon for managing color devices"
url="http://www.freedesktop.org/software/colord"
arch="all"
@@ -13,7 +13,11 @@ pkggroups="colord"
depends_dev="dconf-dev dbus-dev gobject-introspection-dev sqlite-dev
polkit-dev eudev-dev libgudev-dev vala sane-dev"
makedepends="$depends_dev meson intltool bash-completion libgusb-dev lcms2-dev"
-subpackages="$pkgname-dev $pkgname-lang"
+subpackages="
+ $pkgname-dev
+ $pkgname-lang
+ $pkgname-bash-completion:bashcomp:noarch
+ "
source="https://www.freedesktop.org/software/colord/releases/colord-$pkgver.tar.xz
disable-udev-hwdb-tests.patch"
install="colord.pre-install colord.pre-upgrade"
@@ -50,5 +54,13 @@ package() {
chown -R colord:colord "$pkgdir"/var/lib/colord
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ amove usr/share/bash-completion/completions
+}
+
sha512sums="0187a363c41ae5102dc3b454fcd84df83d71ac0dc32d88b33651edc1df15cbf1f47218caee3037c876e892613a2301226886a73b39759cfb709d0fef8e168628 colord-1.4.4.tar.xz
4e306254902658ffe0904b4ee3fdc10c473af909662c08fc66b9070fd698e07e1f804e53ccd94160ac57d268269132683808ff8f2bae64fd2a9070d6f024b800 disable-udev-hwdb-tests.patch"