aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 01:04:37 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 01:04:37 -0300
commit8771bb163c8cc091709d674c13b6213a98cf9de8 (patch)
treeb065efe8f74a678299bc980eae0505ce79ef148a
parent1867e9856a2b441d2dacab393e9a10494f2d8a62 (diff)
downloadaports-8771bb163c8cc091709d674c13b6213a98cf9de8.tar.gz
aports-8771bb163c8cc091709d674c13b6213a98cf9de8.tar.bz2
aports-8771bb163c8cc091709d674c13b6213a98cf9de8.tar.xz
testing/quilt: add bash-completion subpackage
-rw-r--r--testing/quilt/APKBUILD19
1 files changed, 17 insertions, 2 deletions
diff --git a/testing/quilt/APKBUILD b/testing/quilt/APKBUILD
index afd125d6db..6a89e7a17f 100644
--- a/testing/quilt/APKBUILD
+++ b/testing/quilt/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Breno Leitao <breno.leitao@gmail.com>
pkgname=quilt
pkgver=0.66
-pkgrel=1
+pkgrel=2
pkgdesc="Quilt allows you to easily manage large numbers of patches by keeping track of the changes each patch makes"
url="https://savannah.nongnu.org/projects/quilt"
arch="noarch"
@@ -9,7 +9,11 @@ license="GPL-2.0-only"
depends="bash bzip2 diffutils gawk gettext patch"
makedepends="lynx perl sed"
checkdepends="ed"
-subpackages="$pkgname-doc $pkgname-lang"
+subpackages="
+ $pkgname-doc
+ $pkgname-lang
+ $pkgname-bash-completion:bashcomp:noarch
+ "
source="https://download.savannah.gnu.org/releases/quilt/quilt-$pkgver.tar.gz"
# Broken: "mv: can't rename 'patches/test.diff': Permission denied !"
options="!check"
@@ -30,6 +34,17 @@ check() {
package() {
make BUILD_ROOT="$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="c2cb75c0937612e1e0da25b713acf629b6b5aacbd8254d8bd17220b63c7b8ca996cd9d0315a32d67d54a4a7dc01b212cdda33afaacf3db063da757f1973306f4 quilt-0.66.tar.gz"