aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 00:59:56 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 00:59:56 -0300
commitbf4b456224472f70e55f5bb46cc5b508e770b252 (patch)
tree64bd62125f5cc46da2d70ad00db9d01aa60fb145
parent965d0b2257a9783d587411dc7454dd83567f9a6c (diff)
downloadaports-bf4b456224472f70e55f5bb46cc5b508e770b252.tar.gz
aports-bf4b456224472f70e55f5bb46cc5b508e770b252.tar.bz2
aports-bf4b456224472f70e55f5bb46cc5b508e770b252.tar.xz
community/wbar: add bash-completion package
-rw-r--r--community/wbar/APKBUILD20
1 files changed, 18 insertions, 2 deletions
diff --git a/community/wbar/APKBUILD b/community/wbar/APKBUILD
index 0067296584..dcd3804b10 100644
--- a/community/wbar/APKBUILD
+++ b/community/wbar/APKBUILD
@@ -2,13 +2,17 @@
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=wbar
pkgver=2.3.4
-pkgrel=2
+pkgrel=3
pkgdesc="Simple and customizable quick-launch desktop dock"
url="https://github.com/rodolf0/wbar"
arch="all"
license="GPL-3.0-only"
makedepends="libglade-dev intltool imlib2-dev"
-subpackages="$pkgname-lang $pkgname-doc"
+subpackages="
+ $pkgname-lang
+ $pkgname-doc
+ $pkgname-bash-completion:bashcomp:noarch
+ "
source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wbar/wbar-$pkgver.tgz
Functions.patch
Main.patch"
@@ -30,8 +34,20 @@ build() {
package() {
make DESTDIR=$pkgdir install
+
+ mkdir -p "$pkgdir"/usr/share/bash-completion
+ mv "$pkgdir"/etc/bash_completion.d "$pkgdir"/usr/share/bash-completion/completions
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ amove usr/share/bash-completion/completions
+}
+
+
sha512sums="07f3484bd071761d57ef1172c56b30980eef9ce2ee65d1fc21ea20c631a1da1d88c1b8a9e1a1fca0e5f18e7bf1c5697c349a543d72966ce71ff53d7e921147b3 wbar-2.3.4.tgz
edc3f17ef9ee3d761c22c2dc4bb47118ecf2061b0e1fef74a96a9e69d5a1df446f157ab010f5a95b38a4bcd132dacb852fd91b4dfd96ceb659b1409a2149fa5e Functions.patch
175cd141650cd735539af1cde81c89175aca70acbbac3138bce16b46f5ac7f91d36d415026cdd158a9cd75d73d349a5286e00fa1cf22df0ac601f523cc44ddf8 Main.patch"