aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-03-27 00:11:49 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2017-03-27 01:14:28 +0200
commitd50b12f43e16cb0ac32e017913a693dc9f164423 (patch)
treea04de6fdf3dd9e3980146991e0012aa496dbb834 /main
parentbb084b569e1f98e2b648657e862a5af480a3d385 (diff)
downloadaports-d50b12f43e16cb0ac32e017913a693dc9f164423.tar.bz2
aports-d50b12f43e16cb0ac32e017913a693dc9f164423.tar.xz
main/mosh: add bash completion subpackage
Diffstat (limited to 'main')
-rw-r--r--main/mosh/APKBUILD15
1 files changed, 13 insertions, 2 deletions
diff --git a/main/mosh/APKBUILD b/main/mosh/APKBUILD
index 9e7926e252..2c6500b4c3 100644
--- a/main/mosh/APKBUILD
+++ b/main/mosh/APKBUILD
@@ -10,8 +10,9 @@ license="GPL3+"
depends="$pkgname-client $pkgname-server"
makedepends="ncurses-dev zlib-dev libressl-dev perl-dev perl-io-tty protobuf-dev
automake autoconf libtool"
-subpackages="$pkgname-doc $pkgname-client $pkgname-server"
-source="http://$pkgname.mit.edu/$pkgname-$pkgver.tar.gz
+subpackages="$pkgname-doc $pkgname-client $pkgname-server
+ $pkgname-bash-completion:bashcomp:noarch"
+source="https://mosh.org/$pkgname-$pkgver.tar.gz
disable-utf8-check.patch"
builddir="$srcdir"/$pkgname-$pkgver
@@ -40,6 +41,16 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ install -Dm644 "$builddir"/conf/bash-completion/completions/mosh \
+ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname \
+ || return 1
+}
+
server() {
replaces="mosh"
pkgdesc="Mosh server"