aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"