diff options
author | Oleg Titov <oleg.titov@gmail.com> | 2019-08-27 13:06:44 -0500 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-09-25 21:08:05 +0000 |
commit | f3a95c4237ca9959000d7a1b76f3fedebf4cd363 (patch) | |
tree | e2d7c28d7358cfb8b9bfe19f978ea0205b4608fd /main/mtr | |
parent | 686eda66de1efafe5d865dba5b76bd4e1e25f946 (diff) | |
download | aports-f3a95c4237ca9959000d7a1b76f3fedebf4cd363.tar.bz2 aports-f3a95c4237ca9959000d7a1b76f3fedebf4cd363.tar.xz |
main/mtr: move bash completion to own package
Closes GH-10589
Diffstat (limited to 'main/mtr')
-rw-r--r-- | main/mtr/APKBUILD | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/main/mtr/APKBUILD b/main/mtr/APKBUILD index f6caad6dc0..babc9b8884 100644 --- a/main/mtr/APKBUILD +++ b/main/mtr/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: pkgname=mtr pkgver=0.93 -pkgrel=0 +pkgrel=1 pkgdesc="Full screen ncurses traceroute tool" url="http://www.bitwizard.nl/mtr/" arch="all" license="GPL-2.0-only" makedepends="ncurses-dev autoconf gtk+2.0-dev libcap-dev" options="suid" -subpackages="$pkgname-doc $pkgname-gtk" +subpackages="$pkgname-doc $pkgname-gtk $pkgname-bash-completion:bashcomp:noarch" source="ftp://ftp.bitwizard.nl/mtr/mtr-$pkgver.tar.gz mtr-gtk.desktop " @@ -51,5 +51,16 @@ gtk() { mv "$pkgdir"/usr/share/pixmaps "$subpkgdir"/usr/share/ } +bashcomp() { + depends="" + pkgdesc="Bash completion for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion + mv "$pkgdir"/usr/share/bash-completion/completions \ + "$subpkgdir"/usr/share/bash-completion + rm -rf "$pkgdir"/usr/share/bash-completion +} + sha512sums="046e98a661bd6248ce819411ceb6e2b875b92877de38523594898df507836c113573cf40d7d4cc548370f515abe99e0aa4d8b3ba44ad54dd00f8e93c8a96c021 mtr-0.93.tar.gz ecf7543e0125fad6d3f17c30f29f1fc8a3b1e2e477802fe8464e436c3cdfa30d0630b8543cc3f022c475228e94ac8f92981df4d8fb08fe01d004be3d78d6da77 mtr-gtk.desktop" |