aboutsummaryrefslogtreecommitdiffstats
path: root/community/flatpak
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-25 18:39:58 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-25 19:50:20 -0300
commit7577ab91a270759c2509e8ca62519766be7404de (patch)
treeda9643526716903704109e478d18c264f964d363 /community/flatpak
parentff7a81e27355c764ce517a46d5742ec11911c196 (diff)
downloadaports-7577ab91a270759c2509e8ca62519766be7404de.tar.bz2
aports-7577ab91a270759c2509e8ca62519766be7404de.tar.xz
community/flatpak: split shell completion
Diffstat (limited to 'community/flatpak')
-rw-r--r--community/flatpak/APKBUILD28
1 files changed, 25 insertions, 3 deletions
diff --git a/community/flatpak/APKBUILD b/community/flatpak/APKBUILD
index 75448f3052..fa3b133938 100644
--- a/community/flatpak/APKBUILD
+++ b/community/flatpak/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=flatpak
pkgver=1.6.2
-pkgrel=1
+pkgrel=2
pkgdesc="Application deployment framework for desktop apps"
url="https://flatpak.org"
arch="all"
@@ -13,7 +13,13 @@ makedepends="glib-dev libarchive-dev libsoup-dev libcap-dev polkit-dev
libxau-dev ostree-dev>=2018.08 fuse-dev json-glib-dev
libgcab-dev appstream-glib-dev dconf-dev
libseccomp-dev libxslt-dev gpgme-dev bison"
-subpackages="$pkgname-dev $pkgname-lang $pkgname-dbg"
+subpackages="
+ $pkgname-dev
+ $pkgname-lang
+ $pkgname-dbg
+ $pkgname-zsh-completion:zshcomp:noarch
+ $pkgname-bash-completion:bashcomp:noarch
+ "
install="flatpak.pre-install flatpak.pre-upgrade"
source="https://github.com/flatpak/flatpak/releases/download/$pkgver/flatpak-$pkgver.tar.xz
musl-fixes.patch
@@ -38,7 +44,6 @@ build() {
--with-priv-mode=setuid \
--with-system-bubblewrap \
--with-system-helper-user=flatpak
-
make
}
@@ -54,6 +59,23 @@ package() {
install -m644 "$srcdir"/modules-load.conf "$pkgdir"/usr/lib/modules-load.d/flatpak.conf
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ cd "$pkgdir" || return 0
+ amove /usr/share/bash-completion/completions
+}
+
+zshcomp() {
+ depends=""
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+
+ amove usr/share/zsh/site-functions
+}
+
sha512sums="7f7850cb946924bb08cf43578d026d4bb9c72953511d90a8ffaf0984c89b43ab004e21e0cd1cdf4e3d8e84077ad17c9ddb48ec465974ad93efb57f40e1f4f7d7 flatpak-1.6.2.tar.xz
9287ed146bf71665aa436a2c2110cc5edc829a7b4a3e3190947580850fe9ecfd2bb6adb015c692af022d425fb5259390fcdcbd402e8b0d12ee5d2c1a1071ed4f musl-fixes.patch
57d23d2778556eafc3035e6be575bf95b4032f123b35f2b1657eff5e7496de253173edc657f90531ee58e25673f4f27a5cd1cc76b14a038edb244f104a231771 modules-load.conf"